#311473#311473

#311473 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.148 H 288.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#311473
RGBrgb(49, 20, 115)
HSLhsl(258, 70%, 26%)
HSVhsv(258, 83%, 45%)
CMYKcmyk(57.4%, 82.6%, 0%, 54.9%)
CIE-LABlab(17.42, 38.31, -48.87)
CIE-LCHlch(17.42, 62.10, 308.09°)
OKLaboklab(30.55% 0.0459 -0.1406)
OKLCHoklch(30.55% 0.148 288.1)
XYZxyz(4.6104, 2.3908, 16.4349)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311473 #567314
analogous
#142773 #311473 #611473
triadic
#311473 #733114 #147331
tetradic
#311473 #731427 #567314 #147361
square
#311473 #731427 #567314 #147361
split-complementary
#311473 #736114 #277314
monochromatic
#0B051A #1B0B3F #311473 #471DA7 #5E28DA

Accessibility & contrast

On white

14.21
#311473 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311473
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311473#FFFFFF#000000##FFFFFF
##3114731.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#153044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311473;
/* rgb */ color: rgb(49, 20, 115);
/* oklch */ color: oklch(30.5% 0.148 288.1);
Tailwind
colors: {
  custom: {
    50: '#72569c',
    500: '#311473',
    950: '#000000',
  },
}
SCSS
$custom: #311473;
$custom-light: #72569c;
$custom-dark: #000000;
JSON
{
  "hex": "#311473",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 115
  },
  "hsl": {
    "h": 258.316,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30548,
    "c": 0.14793,
    "h": 288.1
  },
  "luminance": 0.02391
}

Semantic roles & 50–950 ramp

primary
#311473
secondary
#87A93A
accent
#ED3BB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311473

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

Preview Lab → · Contrast checker → · Palette generator →

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