#312579#312579

#312579 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.136 H 282.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#312579
RGBrgb(49, 37, 121)
HSLhsl(249, 53%, 31%)
HSVhsv(249, 69%, 47%)
CMYKcmyk(59.5%, 69.4%, 0%, 52.5%)
CIE-LABlab(21.42, 30.68, -46.16)
CIE-LCHlch(21.42, 55.42, 303.61°)
OKLaboklab(33.56% 0.03 -0.1328)
OKLCHoklch(33.56% 0.136 282.7)
XYZxyz(5.3783, 3.3562, 18.4499)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312579 #6D7925
analogous
#254379 #312579 #5B2579
triadic
#312579 #793125 #257931
tetradic
#312579 #792543 #6D7925 #25795B
square
#312579 #792543 #6D7925 #25795B
split-complementary
#312579 #795B25 #437925
monochromatic
#0B081B #1E174A #312579 #4433A8 #614FC9

Accessibility & contrast

On white

12.56
#312579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#312579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312579
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312579#FFFFFF#000000##FFFFFF
##3125791.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#0A3B4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312579;
/* rgb */ color: rgb(49, 37, 121);
/* oklch */ color: oklch(33.6% 0.136 282.7);
Tailwind
colors: {
  custom: {
    50: '#7260a0',
    500: '#312579',
    950: '#000000',
  },
}
SCSS
$custom: #312579;
$custom-light: #7260a0;
$custom-dark: #000000;
JSON
{
  "hex": "#312579",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 248.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33564,
    "c": 0.13614,
    "h": 282.7
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#312579
secondary
#9EAB4E
accent
#DD4BC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #312579

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

Preview Lab → · Contrast checker → · Palette generator →

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