#312554#312554

#312554 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.4% C 0.082 H 292.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#312554
RGBrgb(49, 37, 84)
HSLhsl(255, 39%, 24%)
HSVhsv(255, 56%, 33%)
CMYKcmyk(41.7%, 56%, 0%, 67.1%)
CIE-LABlab(18.44, 18.36, -26.79)
CIE-LCHlch(18.44, 32.47, 304.43°)
OKLaboklab(30.44% 0.0316 -0.0759)
OKLCHoklch(30.44% 0.082 292.6)
XYZxyz(3.5280, 2.6161, 8.7049)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312554 #485425
analogous
#253054 #312554 #482554
triadic
#312554 #543125 #255431
tetradic
#312554 #542530 #485425 #255448
square
#312554 #542530 #485425 #255448
split-complementary
#312554 #544825 #305425
monochromatic
#0C0915 #18122A #312554 #4A387E #634AA9

Accessibility & contrast

On white

13.79
#312554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#312554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312554
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312554#FFFFFF#000000##FFFFFF
##3125541.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E56
Deuteranopia (green-blind)
#142C53
Tritanopia (blue-blind)
#282F38
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #312554;
/* rgb */ color: rgb(49, 37, 84);
/* oklch */ color: oklch(30.4% 0.082 292.6);
Tailwind
colors: {
  custom: {
    50: '#6b5f84',
    500: '#312554',
    950: '#000000',
  },
}
SCSS
$custom: #312554;
$custom-light: #6b5f84;
$custom-dark: #000000;
JSON
{
  "hex": "#312554",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 84
  },
  "hsl": {
    "h": 255.319,
    "s": 38.843,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30438,
    "c": 0.08217,
    "h": 292.6
  },
  "luminance": 0.02616
}

Semantic roles & 50–950 ramp

primary
#312554
secondary
#79874D
accent
#CF59B1
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #312554

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

Preview Lab → · Contrast checker → · Palette generator →

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