#312ABD#312ABD

#312ABD is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.3% C 0.217 H 273.5°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#312ABD
RGBrgb(49, 42, 189)
HSLhsl(243, 64%, 45%)
HSVhsv(243, 78%, 74%)
CMYKcmyk(74.1%, 77.8%, 0%, 25.9%)
CIE-LABlab(29.37, 50.14, -74.73)
CIE-LCHlch(29.37, 89.99, 303.86°)
OKLaboklab(41.29% 0.0132 -0.2162)
OKLCHoklch(41.29% 0.217 273.5)
XYZxyz(11.2768, 5.9819, 48.6946)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312ABD #B6BD2A
analogous
#2A6DBD #312ABD #7A2ABD
triadic
#312ABD #BD312A #2ABD31
tetradic
#312ABD #BD2A6D #B6BD2A #2ABD7A
square
#312ABD #BD2A6D #B6BD2A #2ABD7A
split-complementary
#312ABD #BD7A2A #6DBD2A
monochromatic
#171459 #241F8B #312ABD #534DD7 #847FE3

Accessibility & contrast

On white

9.56
#312ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#312ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312ABD
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312ABD#FFFFFF#000000##FFFFFF
##312ABD1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC1
Deuteranopia (green-blind)
#003EBA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312abd;
/* rgb */ color: rgb(49, 42, 189);
/* oklch */ color: oklch(41.3% 0.217 273.5);
Tailwind
colors: {
  custom: {
    50: '#8067d2',
    500: '#312abd',
    950: '#000000',
  },
}
SCSS
$custom: #312abd;
$custom-light: #8067d2;
$custom-dark: #000000;
JSON
{
  "hex": "#312abd",
  "rgb": {
    "r": 49,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 242.857,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41288,
    "c": 0.21661,
    "h": 273.5
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#312ABD
secondary
#C7CB78
accent
#E741DF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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