#311672#311672

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

Color values

HEX#311672
RGBrgb(49, 22, 114)
HSLhsl(258, 68%, 27%)
HSVhsv(258, 81%, 45%)
CMYKcmyk(57%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.65, 37.03, -47.84)
CIE-LCHlch(17.65, 60.49, 307.74°)
OKLaboklab(30.68% 0.0447 -0.1376)
OKLCHoklch(30.68% 0.145 288)
XYZxyz(4.5899, 2.4415, 16.1457)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311672 #577216
analogous
#162972 #311672 #5F1672
triadic
#311672 #723116 #167231
tetradic
#311672 #721629 #577216 #16725F
square
#311672 #721629 #577216 #16725F
split-complementary
#311672 #725F16 #297216
monochromatic
#0B051A #1B0C3F #311672 #4720A5 #5E2CD6

Accessibility & contrast

On white

14.11
#311672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#311672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311672
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311672#FFFFFF#000000##FFFFFF
##3116721.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#163043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311672;
/* rgb */ color: rgb(49, 22, 114);
/* oklch */ color: oklch(30.7% 0.145 288.0);
Tailwind
colors: {
  custom: {
    50: '#72579b',
    500: '#311672',
    950: '#000000',
  },
}
SCSS
$custom: #311672;
$custom-light: #72579b;
$custom-dark: #000000;
JSON
{
  "hex": "#311672",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 257.609,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.14471,
    "h": 288
  },
  "luminance": 0.02442
}

Semantic roles & 50–950 ramp

primary
#311672
secondary
#88A83C
accent
#EB3DB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #311672

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

Preview Lab → · Contrast checker → · Palette generator →

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