#312571#312571

#312571 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.125 H 284.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#312571
RGBrgb(49, 37, 113)
HSLhsl(249, 51%, 29%)
HSVhsv(249, 67%, 44%)
CMYKcmyk(56.6%, 67.3%, 0%, 55.7%)
CIE-LABlab(20.70, 27.98, -42.20)
CIE-LCHlch(20.70, 50.63, 303.55°)
OKLaboklab(32.83% 0.031 -0.1212)
OKLCHoklch(32.83% 0.125 284.3)
XYZxyz(4.9079, 3.1681, 15.9725)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312571 #657125
analogous
#253F71 #312571 #572571
triadic
#312571 #713125 #257131
tetradic
#312571 #71253F #657125 #257157
square
#312571 #71253F #657125 #257157
split-complementary
#312571 #715725 #3F7125
monochromatic
#0A0817 #1D1643 #312571 #45349F #5F4CC4

Accessibility & contrast

On white

12.86
#312571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#312571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312571
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312571#FFFFFF#000000##FFFFFF
##3125711.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#153847
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312571;
/* rgb */ color: rgb(49, 37, 113);
/* oklch */ color: oklch(32.8% 0.125 284.3);
Tailwind
colors: {
  custom: {
    50: '#70609a',
    500: '#312571',
    950: '#000000',
  },
}
SCSS
$custom: #312571;
$custom-light: #70609a;
$custom-dark: #000000;
JSON
{
  "hex": "#312571",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 249.474,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.12506,
    "h": 284.3
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#312571
secondary
#96A44E
accent
#DA4EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312571

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

Preview Lab → · Contrast checker → · Palette generator →

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