#311666#311666

#311666 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.130 H 291.8°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#311666
RGBrgb(49, 22, 102)
HSLhsl(260, 65%, 24%)
HSVhsv(260, 78%, 40%)
CMYKcmyk(52%, 78.4%, 0%, 60%)
CIE-LABlab(16.43, 33.40, -42.01)
CIE-LCHlch(16.43, 53.67, 308.49°)
OKLaboklab(29.46% 0.0482 -0.1206)
OKLCHoklch(29.46% 0.13 291.8)
XYZxyz(3.9511, 2.1859, 12.7815)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311666 #4B6616
analogous
#162366 #311666 #591666
triadic
#311666 #663116 #166631
tetradic
#311666 #661623 #4B6616 #166659
square
#311666 #661623 #4B6616 #166659
split-complementary
#311666 #665916 #236616
monochromatic
#0C0519 #190B34 #311666 #492198 #612CCB

Accessibility & contrast

On white

14.61
#311666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311666
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311666#FFFFFF#000000##FFFFFF
##3116661.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#202C3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311666;
/* rgb */ color: rgb(49, 22, 102);
/* oklch */ color: oklch(29.5% 0.130 291.8);
Tailwind
colors: {
  custom: {
    50: '#6f5692',
    500: '#311666',
    950: '#000000',
  },
}
SCSS
$custom: #311666;
$custom-light: #6f5692;
$custom-dark: #000000;
JSON
{
  "hex": "#311666",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 260.25,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29455,
    "c": 0.12985,
    "h": 291.8
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#311666
secondary
#7C9D3B
accent
#E840AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311666

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

Preview Lab → · Contrast checker → · Palette generator →

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