#312AB9#312AB9

#312AB9 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.9% C 0.212 H 273.8°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#312AB9
RGBrgb(49, 42, 185)
HSLhsl(243, 63%, 45%)
HSVhsv(243, 77%, 73%)
CMYKcmyk(73.5%, 77.3%, 0%, 27.5%)
CIE-LABlab(28.93, 48.88, -73.08)
CIE-LCHlch(28.93, 87.92, 303.77°)
OKLaboklab(40.85% 0.0141 -0.2114)
OKLCHoklch(40.85% 0.212 273.8)
XYZxyz(10.8486, 5.8106, 46.4393)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312AB9 #B2B92A
analogous
#2A6BB9 #312AB9 #792AB9
triadic
#312AB9 #B9312A #2AB931
tetradic
#312AB9 #B92A6B #B2B92A #2AB979
square
#312AB9 #B92A6B #B2B92A #2AB979
split-complementary
#312AB9 #B9792A #6BB92A
monochromatic
#171355 #241F87 #312AB9 #514AD6 #817CE1

Accessibility & contrast

On white

9.71
#312AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#312AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312AB9
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312AB9#FFFFFF#000000##FFFFFF
##312AB91.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBD
Deuteranopia (green-blind)
#003DB7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #312ab9;
/* rgb */ color: rgb(49, 42, 185);
/* oklch */ color: oklch(40.9% 0.212 273.8);
Tailwind
colors: {
  custom: {
    50: '#7f66cf',
    500: '#312ab9',
    950: '#000000',
  },
}
SCSS
$custom: #312ab9;
$custom-light: #7f66cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312ab9",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 242.937,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40853,
    "c": 0.21189,
    "h": 273.8
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#312AB9
secondary
#C5CA75
accent
#E642DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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