#311472#311472

#311472 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.147 H 288.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#311472
RGBrgb(49, 20, 114)
HSLhsl(259, 70%, 26%)
HSVhsv(259, 82%, 45%)
CMYKcmyk(57%, 82.5%, 0%, 55.3%)
CIE-LABlab(17.31, 38.01, -48.40)
CIE-LCHlch(17.31, 61.54, 308.14°)
OKLaboklab(30.44% 0.0462 -0.1393)
OKLCHoklch(30.44% 0.147 288.3)
XYZxyz(4.5531, 2.3680, 16.1335)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311472 #557214
analogous
#142672 #311472 #601472
triadic
#311472 #723114 #147231
tetradic
#311472 #721426 #557214 #147260
square
#311472 #721426 #557214 #147260
split-complementary
#311472 #726014 #267214
monochromatic
#0B051A #1B0B3E #311472 #471DA6 #5E27D9

Accessibility & contrast

On white

14.25
#311472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311472
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311472#FFFFFF#000000##FFFFFF
##3114721.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#162F43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311472;
/* rgb */ color: rgb(49, 20, 114);
/* oklch */ color: oklch(30.4% 0.147 288.3);
Tailwind
colors: {
  custom: {
    50: '#72569c',
    500: '#311472',
    950: '#000000',
  },
}
SCSS
$custom: #311472;
$custom-light: #72569c;
$custom-dark: #000000;
JSON
{
  "hex": "#311472",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 258.511,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30442,
    "c": 0.14672,
    "h": 288.3
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

primary
#311472
secondary
#86A839
accent
#ED3BB6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311472

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

Preview Lab → · Contrast checker → · Palette generator →

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