#312059#312059

#312059 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.098 H 293.3°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#312059
RGBrgb(49, 32, 89)
HSLhsl(258, 47%, 24%)
HSVhsv(258, 64%, 35%)
CMYKcmyk(44.9%, 64%, 0%, 65.1%)
CIE-LABlab(17.49, 23.33, -31.65)
CIE-LCHlch(17.49, 39.32, 306.39°)
OKLaboklab(29.86% 0.0388 -0.0902)
OKLCHoklch(29.86% 0.098 293.3)
XYZxyz(3.5858, 2.4072, 9.7250)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312059 #485920
analogous
#202B59 #312059 #4D2059
triadic
#312059 #593120 #205931
tetradic
#312059 #59202B #485920 #20594D
square
#312059 #59202B #485920 #20594D
split-complementary
#312059 #594D20 #2B5920
monochromatic
#0C0817 #18102C #312059 #4A3086 #6340B3

Accessibility & contrast

On white

14.18
#312059 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312059
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312059#FFFFFF#000000##FFFFFF
##3120591.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#032A58
Tritanopia (blue-blind)
#262D39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #312059;
/* rgb */ color: rgb(49, 32, 89);
/* oklch */ color: oklch(29.9% 0.098 293.3);
Tailwind
colors: {
  custom: {
    50: '#6d5c88',
    500: '#312059',
    950: '#000000',
  },
}
SCSS
$custom: #312059;
$custom-light: #6d5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#312059",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 89
  },
  "hsl": {
    "h": 257.895,
    "s": 47.107,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29859,
    "c": 0.09817,
    "h": 293.3
  },
  "luminance": 0.02407
}

Semantic roles & 50–950 ramp

primary
#312059
secondary
#798D47
accent
#D751AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #312059

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

Preview Lab → · Contrast checker → · Palette generator →

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