#311372#311372

#311372 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.148 H 288.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#311372
RGBrgb(49, 19, 114)
HSLhsl(259, 71%, 26%)
HSVhsv(259, 83%, 45%)
CMYKcmyk(57%, 83.3%, 0%, 55.3%)
CIE-LABlab(17.15, 38.48, -48.67)
CIE-LCHlch(17.15, 62.05, 308.33°)
OKLaboklab(30.33% 0.0469 -0.14)
OKLCHoklch(30.33% 0.148 288.5)
XYZxyz(4.5359, 2.3334, 16.1277)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311372 #547213
analogous
#132472 #311372 #601372
triadic
#311372 #723113 #137231
tetradic
#311372 #721324 #547213 #137260
square
#311372 #721324 #547213 #137260
split-complementary
#311372 #726013 #247213
monochromatic
#0B041A #1A0A3E #311372 #481CA6 #5E25DB

Accessibility & contrast

On white

14.32
#311372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311372
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311372#FFFFFF#000000##FFFFFF
##3113721.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311372;
/* rgb */ color: rgb(49, 19, 114);
/* oklch */ color: oklch(30.3% 0.148 288.5);
Tailwind
colors: {
  custom: {
    50: '#72559c',
    500: '#311372',
    950: '#000000',
  },
}
SCSS
$custom: #311372;
$custom-light: #72559c;
$custom-dark: #000000;
JSON
{
  "hex": "#311372",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 258.947,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30329,
    "c": 0.14769,
    "h": 288.5
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#311372
secondary
#85A938
accent
#EE3AB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311372

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

Preview Lab → · Contrast checker → · Palette generator →

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