#311474#311474

#311474 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.149 H 287.8°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#311474
RGBrgb(49, 20, 116)
HSLhsl(258, 71%, 27%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(57.8%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.53, 38.60, -49.34)
CIE-LCHlch(17.53, 62.65, 308.04°)
OKLaboklab(30.65% 0.0455 -0.142)
OKLCHoklch(30.65% 0.149 287.8)
XYZxyz(4.6682, 2.4140, 16.7396)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311474 #577414
analogous
#142774 #311474 #611474
triadic
#311474 #743114 #147431
tetradic
#311474 #741427 #577414 #147461
square
#311474 #741427 #577414 #147461
split-complementary
#311474 #746114 #277414
monochromatic
#0B051A #1B0B40 #311474 #471DA8 #5E28DA

Accessibility & contrast

On white

14.16
#311474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311474
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311474#FFFFFF#000000##FFFFFF
##3114741.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#143044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311474;
/* rgb */ color: rgb(49, 20, 116);
/* oklch */ color: oklch(30.7% 0.149 287.8);
Tailwind
colors: {
  custom: {
    50: '#72569d',
    500: '#311474',
    950: '#000000',
  },
}
SCSS
$custom: #311474;
$custom-light: #72569d;
$custom-dark: #000000;
JSON
{
  "hex": "#311474",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 258.125,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30655,
    "c": 0.14912,
    "h": 287.8
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#311474
secondary
#88AA3A
accent
#ED3AB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311474

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

Preview Lab → · Contrast checker → · Palette generator →

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