#312E9B#312E9B

#312E9B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.171 H 275.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#312E9B
RGBrgb(49, 46, 155)
HSLhsl(242, 54%, 39%)
HSVhsv(242, 70%, 61%)
CMYKcmyk(68.4%, 70.3%, 0%, 39.2%)
CIE-LABlab(26.66, 36.69, -58.78)
CIE-LCHlch(26.66, 69.29, 301.97°)
OKLaboklab(38.32% 0.0176 -0.1698)
OKLCHoklch(38.32% 0.171 275.9)
XYZxyz(8.1581, 4.9728, 31.5339)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312E9B #989B2E
analogous
#2E629B #312E9B #672E9B
triadic
#312E9B #9B312E #2E9B31
tetradic
#312E9B #9B2E62 #989B2E #2E9B67
square
#312E9B #9B2E62 #989B2E #2E9B67
split-complementary
#312E9B #9B672E #629B2E
monochromatic
#13123D #22206C #312E9B #4440C6 #726FD4

Accessibility & contrast

On white

10.53
#312E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#312E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312E9B
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312E9B#FFFFFF#000000##FFFFFF
##312E9B1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #312e9b;
/* rgb */ color: rgb(49, 46, 155);
/* oklch */ color: oklch(38.3% 0.171 275.9);
Tailwind
colors: {
  custom: {
    50: '#7868ba',
    500: '#312e9b',
    950: '#000000',
  },
}
SCSS
$custom: #312e9b;
$custom-light: #7868ba;
$custom-dark: #000000;
JSON
{
  "hex": "#312e9b",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 241.651,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.17066,
    "h": 275.9
  },
  "luminance": 0.04974
}

Semantic roles & 50–950 ramp

primary
#312E9B
secondary
#B9BC69
accent
#DE4ADA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #312E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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