#312971#312971

#312971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.5% C 0.119 H 282.9°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#312971
RGBrgb(49, 41, 113)
HSLhsl(247, 47%, 30%)
HSVhsv(247, 64%, 44%)
CMYKcmyk(56.6%, 63.7%, 0%, 55.7%)
CIE-LABlab(21.69, 25.37, -40.59)
CIE-LCHlch(21.69, 47.86, 302.01°)
OKLaboklab(33.55% 0.0267 -0.1164)
OKLCHoklch(33.55% 0.119 282.9)
XYZxyz(5.0393, 3.4308, 16.0163)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312971 #697129
analogous
#294571 #312971 #552971
triadic
#312971 #713129 #297131
tetradic
#312971 #712945 #697129 #297155
square
#312971 #712945 #697129 #297155
split-complementary
#312971 #715529 #457129
monochromatic
#0A0817 #1E1944 #312971 #44399E #6054C1

Accessibility & contrast

On white

12.45
#312971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312971
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312971#FFFFFF#000000##FFFFFF
##3129711.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#153A48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312971;
/* rgb */ color: rgb(49, 41, 113);
/* oklch */ color: oklch(33.5% 0.119 282.9);
Tailwind
colors: {
  custom: {
    50: '#70639a',
    500: '#312971',
    950: '#000000',
  },
}
SCSS
$custom: #312971;
$custom-light: #70639a;
$custom-dark: #000000;
JSON
{
  "hex": "#312971",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 246.667,
    "s": 46.753,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33547,
    "c": 0.11943,
    "h": 282.9
  },
  "luminance": 0.03431
}

Semantic roles & 50–950 ramp

primary
#312971
secondary
#9AA353
accent
#D651C8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312971

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

Preview Lab → · Contrast checker → · Palette generator →

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