#312EB8#312EB8

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

Color values

HEX#312EB8
RGBrgb(49, 46, 184)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 72%)
CMYKcmyk(73.4%, 75%, 0%, 27.8%)
CIE-LABlab(29.58, 46.40, -71.41)
CIE-LCHlch(29.58, 85.17, 303.01°)
OKLaboklab(41.28% 0.0126 -0.2066)
OKLCHoklch(41.28% 0.207 273.5)
XYZxyz(10.8925, 6.0665, 45.9350)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB8 #B5B82E
analogous
#2E70B8 #312EB8 #762EB8
triadic
#312EB8 #B8312E #2EB831
tetradic
#312EB8 #B82E70 #B5B82E #2EB876
square
#312EB8 #B82E70 #B5B82E #2EB876
split-complementary
#312EB8 #B8762E #70B82E
monochromatic
#171656 #242287 #312EB8 #5350D3 #8381DF

Accessibility & contrast

On white

9.49
#312EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312EB8
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EB8#FFFFFF#000000##FFFFFF
##312EB81.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#003FB6
Tritanopia (blue-blind)
#005671
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312eb8;
/* rgb */ color: rgb(49, 46, 184);
/* oklch */ color: oklch(41.3% 0.207 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#312eb8',
    950: '#000000',
  },
}
SCSS
$custom: #312eb8;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb8",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 241.304,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.20699,
    "h": 273.5
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#312EB8
secondary
#C7C879
accent
#E345E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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