#312EB9#312EB9

#312EB9 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.208 H 273.4°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#312EB9
RGBrgb(49, 46, 185)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.5%, 75.1%, 0%, 27.5%)
CIE-LABlab(29.68, 46.73, -71.83)
CIE-LCHlch(29.68, 85.69, 303.04°)
OKLaboklab(41.39% 0.0124 -0.2078)
OKLCHoklch(41.39% 0.208 273.4)
XYZxyz(10.9976, 6.1086, 46.4890)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB9 #B6B92E
analogous
#2E70B9 #312EB9 #762EB9
triadic
#312EB9 #B9312E #2EB931
tetradic
#312EB9 #B92E70 #B6B92E #2EB976
square
#312EB9 #B92E70 #B6B92E #2EB976
split-complementary
#312EB9 #B9762E #70B92E
monochromatic
#171657 #242288 #312EB9 #5351D4 #8482E0

Accessibility & contrast

On white

9.45
#312EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#312EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EB9
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EB9#FFFFFF#000000##FFFFFF
##312EB91.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312eb9;
/* rgb */ color: rgb(49, 46, 185);
/* oklch */ color: oklch(41.4% 0.208 273.4);
Tailwind
colors: {
  custom: {
    50: '#7f69cf',
    500: '#312eb9',
    950: '#000000',
  },
}
SCSS
$custom: #312eb9;
$custom-light: #7f69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb9",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 241.295,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41385,
    "c": 0.2082,
    "h": 273.4
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#312EB9
secondary
#C7C97A
accent
#E344E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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