#312E97#312E97

#312E97 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.165 H 276.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#312E97
RGBrgb(49, 46, 151)
HSLhsl(242, 53%, 39%)
HSVhsv(242, 70%, 59%)
CMYKcmyk(67.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.28, 35.32, -56.95)
CIE-LCHlch(26.28, 67.01, 301.80°)
OKLaboklab(37.93% 0.0182 -0.1644)
OKLCHoklch(37.93% 0.165 276.3)
XYZxyz(7.8277, 4.8406, 29.7940)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E97 #94972E
analogous
#2E5F97 #312E97 #652E97
triadic
#312E97 #97312E #2E9731
tetradic
#312E97 #972E5F #94972E #2E9765
square
#312E97 #972E5F #94972E #2E9765
split-complementary
#312E97 #97652E #5F972E
monochromatic
#131139 #222068 #312E97 #423EC4 #706DD2

Accessibility & contrast

On white

10.67
#312E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#312E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E97
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E97#FFFFFF#000000##FFFFFF
##312E971.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #312e97;
/* rgb */ color: rgb(49, 46, 151);
/* oklch */ color: oklch(37.9% 0.165 276.3);
Tailwind
colors: {
  custom: {
    50: '#7767b7',
    500: '#312e97',
    950: '#000000',
  },
}
SCSS
$custom: #312e97;
$custom-light: #7767b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312e97",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 241.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37926,
    "c": 0.16542,
    "h": 276.3
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#312E97
secondary
#B7BA67
accent
#DD4BD9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #312E97

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

Preview Lab → · Contrast checker → · Palette generator →

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