#312DB9#312DB9

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

Color values

HEX#312DB9
RGBrgb(49, 45, 185)
HSLhsl(242, 61%, 45%)
HSVhsv(242, 76%, 73%)
CMYKcmyk(73.5%, 75.7%, 0%, 27.5%)
CIE-LABlab(29.49, 47.27, -72.15)
CIE-LCHlch(29.49, 86.26, 303.23°)
OKLaboklab(41.25% 0.0128 -0.2087)
OKLCHoklch(41.25% 0.209 273.5)
XYZxyz(10.9590, 6.0314, 46.4762)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312DB9 #B5B92D
analogous
#2D6FB9 #312DB9 #772DB9
triadic
#312DB9 #B9312D #2DB931
tetradic
#312DB9 #B92D6F #B5B92D #2DB977
square
#312DB9 #B92D6F #B5B92D #2DB977
split-complementary
#312DB9 #B9772D #6FB92D
monochromatic
#171557 #242188 #312DB9 #534FD4 #8380E0

Accessibility & contrast

On white

9.52
#312DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#312DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312DB9
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312DB9#FFFFFF#000000##FFFFFF
##312DB91.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#003FB7
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312db9;
/* rgb */ color: rgb(49, 45, 185);
/* oklch */ color: oklch(41.2% 0.209 273.5);
Tailwind
colors: {
  custom: {
    50: '#7f68cf',
    500: '#312db9',
    950: '#000000',
  },
}
SCSS
$custom: #312db9;
$custom-light: #7f68cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312db9",
  "rgb": {
    "r": 49,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 241.714,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41249,
    "c": 0.20914,
    "h": 273.5
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#312DB9
secondary
#C7C979
accent
#E444DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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