#312FB9#312FB9

#312FB9 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.207 H 273.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#312FB9
RGBrgb(49, 47, 185)
HSLhsl(241, 59%, 45%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.5%, 74.6%, 0%, 27.5%)
CIE-LABlab(29.88, 46.17, -71.51)
CIE-LCHlch(29.88, 85.12, 302.85°)
OKLaboklab(41.52% 0.0119 -0.2069)
OKLCHoklch(41.52% 0.207 273.3)
XYZxyz(11.0372, 6.1877, 46.5022)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB9 #B7B92F
analogous
#2F72B9 #312FB9 #762FB9
triadic
#312FB9 #B9312F #2FB931
tetradic
#312FB9 #B92F72 #B7B92F #2FB976
square
#312FB9 #B92F72 #B7B92F #2FB976
split-complementary
#312FB9 #B9762F #72B92F
monochromatic
#171657 #242388 #312FB9 #5452D3 #8483DF

Accessibility & contrast

On white

9.38
#312FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#312FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB9
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB9#FFFFFF#000000##FFFFFF
##312FB91.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312fb9;
/* rgb */ color: rgb(49, 47, 185);
/* oklch */ color: oklch(41.5% 0.207 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f69cf',
    500: '#312fb9',
    950: '#000000',
  },
}
SCSS
$custom: #312fb9;
$custom-light: #7f69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb9",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 240.87,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41524,
    "c": 0.20724,
    "h": 273.3
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#312FB9
secondary
#C8C97B
accent
#E345E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312FB9

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

Preview Lab → · Contrast checker → · Palette generator →

#312FB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva