#312F91#312F91

#312F91 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.156 H 276.7°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#312F91
RGBrgb(49, 47, 145)
HSLhsl(241, 51%, 38%)
HSVhsv(241, 68%, 57%)
CMYKcmyk(66.2%, 67.6%, 0%, 43.1%)
CIE-LABlab(25.95, 32.61, -53.80)
CIE-LCHlch(25.95, 62.91, 301.22°)
OKLaboklab(37.52% 0.0181 -0.1552)
OKLCHoklch(37.52% 0.156 276.7)
XYZxyz(7.3923, 4.7297, 27.3059)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312F91 #8F912F
analogous
#2F5E91 #312F91 #622F91
triadic
#312F91 #91312F #2F9131
tetradic
#312F91 #912F5E #8F912F #2F9162
square
#312F91 #912F5E #8F912F #2F9162
split-complementary
#312F91 #91622F #5E912F
monochromatic
#121135 #212063 #312F91 #413EBF #6D6BCF

Accessibility & contrast

On white

10.79
#312F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#312F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312F91
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312F91#FFFFFF#000000##FFFFFF
##312F911.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #312f91;
/* rgb */ color: rgb(49, 47, 145);
/* oklch */ color: oklch(37.5% 0.156 276.7);
Tailwind
colors: {
  custom: {
    50: '#7668b2',
    500: '#312f91',
    950: '#000000',
  },
}
SCSS
$custom: #312f91;
$custom-light: #7668b2;
$custom-dark: #000000;
JSON
{
  "hex": "#312f91",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 241.224,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3752,
    "c": 0.15623,
    "h": 276.7
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#312F91
secondary
#B5B665
accent
#DB4DD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #312F91

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

Preview Lab → · Contrast checker → · Palette generator →

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