#312EB4#312EB4

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

Color values

HEX#312EB4
RGBrgb(49, 46, 180)
HSLhsl(241, 59%, 44%)
HSVhsv(241, 74%, 71%)
CMYKcmyk(72.8%, 74.4%, 0%, 29.4%)
CIE-LABlab(29.16, 45.09, -69.73)
CIE-LCHlch(29.16, 83.04, 302.89°)
OKLaboklab(40.86% 0.0133 -0.2017)
OKLCHoklch(40.86% 0.202 273.8)
XYZxyz(10.4791, 5.9012, 43.7580)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB4 #B1B42E
analogous
#2E6EB4 #312EB4 #742EB4
triadic
#312EB4 #B4312E #2EB431
tetradic
#312EB4 #B42E6E #B1B42E #2EB474
square
#312EB4 #B42E6E #B1B42E #2EB474
split-complementary
#312EB4 #B4742E #6EB42E
monochromatic
#161553 #242283 #312EB4 #514ED2 #807EDE

Accessibility & contrast

On white

9.63
#312EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#312EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EB4
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EB4#FFFFFF#000000##FFFFFF
##312EB41.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB8
Deuteranopia (green-blind)
#003EB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312eb4;
/* rgb */ color: rgb(49, 46, 180);
/* oklch */ color: oklch(40.9% 0.202 273.8);
Tailwind
colors: {
  custom: {
    50: '#7e69cc',
    500: '#312eb4',
    950: '#000000',
  },
}
SCSS
$custom: #312eb4;
$custom-light: #7e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb4",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 241.343,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.20214,
    "h": 273.8
  },
  "luminance": 0.05902
}

Semantic roles & 50–950 ramp

primary
#312EB4
secondary
#C5C777
accent
#E245DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #312EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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