#311362#311362

#311362 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.128 H 294.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#311362
RGBrgb(49, 19, 98)
HSLhsl(263, 68%, 23%)
HSVhsv(263, 81%, 38%)
CMYKcmyk(50%, 80.6%, 0%, 61.6%)
CIE-LABlab(15.49, 33.78, -40.91)
CIE-LCHlch(15.49, 53.05, 309.55°)
OKLaboklab(28.67% 0.0522 -0.1173)
OKLCHoklch(28.67% 0.128 294)
XYZxyz(3.7035, 2.0004, 11.7439)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311362 #446213
analogous
#131C62 #311362 #581362
triadic
#311362 #623113 #136231
tetradic
#311362 #62131C #446213 #136258
square
#311362 #62131C #446213 #136258
split-complementary
#311362 #625813 #1C6213
monochromatic
#0D051A #17092F #311362 #4B1D95 #6427C9

Accessibility & contrast

On white

15.00
#311362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311362 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311362
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311362#FFFFFF#000000##FFFFFF
##3113621.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#22283A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311362;
/* rgb */ color: rgb(49, 19, 98);
/* oklch */ color: oklch(28.7% 0.128 294.0);
Tailwind
colors: {
  custom: {
    50: '#6f548f',
    500: '#311362',
    950: '#000000',
  },
}
SCSS
$custom: #311362;
$custom-light: #6f548f;
$custom-dark: #000000;
JSON
{
  "hex": "#311362",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 262.785,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2867,
    "c": 0.12839,
    "h": 294
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#311362
secondary
#749A37
accent
#EA3DA9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311362

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#311362 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva