#311669#311669

#311669 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.134 H 290.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#311669
RGBrgb(49, 22, 105)
HSLhsl(260, 65%, 25%)
HSVhsv(260, 79%, 41%)
CMYKcmyk(53.3%, 79%, 0%, 58.8%)
CIE-LABlab(16.73, 34.31, -43.49)
CIE-LCHlch(16.73, 55.40, 308.27°)
OKLaboklab(29.76% 0.0474 -0.1249)
OKLCHoklch(29.76% 0.134 290.8)
XYZxyz(4.1026, 2.2465, 13.5793)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311669 #4E6916
analogous
#162569 #311669 #5A1669
triadic
#311669 #693116 #166931
tetradic
#311669 #691625 #4E6916 #16695A
square
#311669 #691625 #4E6916 #16695A
split-complementary
#311669 #695A16 #256916
monochromatic
#0C0519 #190B36 #311669 #49219C #602BCE

Accessibility & contrast

On white

14.49
#311669 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311669 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311669
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311669#FFFFFF#000000##FFFFFF
##3116691.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#1E2D3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311669;
/* rgb */ color: rgb(49, 22, 105);
/* oklch */ color: oklch(29.8% 0.134 290.8);
Tailwind
colors: {
  custom: {
    50: '#705695',
    500: '#311669',
    950: '#000000',
  },
}
SCSS
$custom: #311669;
$custom-light: #705695;
$custom-dark: #000000;
JSON
{
  "hex": "#311669",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 105
  },
  "hsl": {
    "h": 259.518,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29755,
    "c": 0.1336,
    "h": 290.8
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#311669
secondary
#7F9F3B
accent
#E83FB1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311669

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

Preview Lab → · Contrast checker → · Palette generator →

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