#312F96#312F96

#312F96 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.163 H 276.2°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#312F96
RGBrgb(49, 47, 150)
HSLhsl(241, 52%, 39%)
HSVhsv(241, 69%, 59%)
CMYKcmyk(67.3%, 68.7%, 0%, 41.2%)
CIE-LABlab(26.41, 34.35, -56.12)
CIE-LCHlch(26.41, 65.80, 301.47°)
OKLaboklab(38% 0.0175 -0.162)
OKLCHoklch(38% 0.163 276.2)
XYZxyz(7.7864, 4.8873, 29.3813)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F96 #94962F
analogous
#2F6096 #312F96 #642F96
triadic
#312F96 #96312F #2F9631
tetradic
#312F96 #962F60 #94962F #2F9664
square
#312F96 #962F60 #94962F #2F9664
split-complementary
#312F96 #96642F #60962F
monochromatic
#131239 #222067 #312F96 #423FC3 #706ED2

Accessibility & contrast

On white

10.62
#312F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#312F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F96
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F96#FFFFFF#000000##FFFFFF
##312F961.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004399
Deuteranopia (green-blind)
#003A94
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312f96;
/* rgb */ color: rgb(49, 47, 150);
/* oklch */ color: oklch(38.0% 0.163 276.2);
Tailwind
colors: {
  custom: {
    50: '#7768b6',
    500: '#312f96',
    950: '#000000',
  },
}
SCSS
$custom: #312f96;
$custom-light: #7768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312f96",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 241.165,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.16293,
    "h": 276.2
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#312F96
secondary
#B7B968
accent
#DC4CD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312F96

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

Preview Lab → · Contrast checker → · Palette generator →

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