#311370#311370

#311370 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.145 H 289.1°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#311370
RGBrgb(49, 19, 112)
HSLhsl(259, 71%, 26%)
HSVhsv(259, 83%, 44%)
CMYKcmyk(56.3%, 83%, 0%, 56.1%)
CIE-LABlab(16.93, 37.89, -47.73)
CIE-LCHlch(16.93, 60.94, 308.45°)
OKLaboklab(30.12% 0.0476 -0.1373)
OKLCHoklch(30.12% 0.145 289.1)
XYZxyz(4.4233, 2.2884, 15.5347)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311370 #527013
analogous
#132370 #311370 #5F1370
triadic
#311370 #703113 #137031
tetradic
#311370 #701323 #527013 #13705F
square
#311370 #701323 #527013 #13705F
split-complementary
#311370 #705F13 #237013
monochromatic
#0B041A #1A0A3C #311370 #481CA4 #5F25D9

Accessibility & contrast

On white

14.41
#311370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311370
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311370#FFFFFF#000000##FFFFFF
##3113701.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#182E42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311370;
/* rgb */ color: rgb(49, 19, 112);
/* oklch */ color: oklch(30.1% 0.145 289.1);
Tailwind
colors: {
  custom: {
    50: '#71559a',
    500: '#311370',
    950: '#000000',
  },
}
SCSS
$custom: #311370;
$custom-light: #71559a;
$custom-dark: #000000;
JSON
{
  "hex": "#311370",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 259.355,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30115,
    "c": 0.1453,
    "h": 289.1
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#311370
secondary
#83A738
accent
#EE3AB4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311370

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

Preview Lab → · Contrast checker → · Palette generator →

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