#312EB7#312EB7

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

Color values

HEX#312EB7
RGBrgb(49, 46, 183)
HSLhsl(241, 60%, 45%)
HSVhsv(241, 75%, 72%)
CMYKcmyk(73.2%, 74.9%, 0%, 28.2%)
CIE-LABlab(29.47, 46.07, -70.99)
CIE-LCHlch(29.47, 84.63, 302.98°)
OKLaboklab(41.17% 0.0127 -0.2054)
OKLCHoklch(41.17% 0.206 273.6)
XYZxyz(10.7880, 6.0248, 45.3849)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EB7 #B4B72E
analogous
#2E6FB7 #312EB7 #762EB7
triadic
#312EB7 #B7312E #2EB731
tetradic
#312EB7 #B72E6F #B4B72E #2EB776
square
#312EB7 #B72E6F #B4B72E #2EB776
split-complementary
#312EB7 #B7762E #6FB72E
monochromatic
#171555 #242286 #312EB7 #524FD3 #8280DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312EB7#FFFFFF#000000##FFFFFF
##312EB71.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)
#004CBB
Deuteranopia (green-blind)
#003FB5
Tritanopia (blue-blind)
#005670
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312eb7;
/* rgb */ color: rgb(49, 46, 183);
/* oklch */ color: oklch(41.2% 0.206 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e69ce',
    500: '#312eb7',
    950: '#000000',
  },
}
SCSS
$custom: #312eb7;
$custom-light: #7e69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#312eb7",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 241.314,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.41174,
    "c": 0.20579,
    "h": 273.6
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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