#312FB4#312FB4

#312FB4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.0% C 0.201 H 273.7°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#312FB4
RGBrgb(49, 47, 180)
HSLhsl(241, 59%, 45%)
HSVhsv(241, 74%, 71%)
CMYKcmyk(72.8%, 73.9%, 0%, 29.4%)
CIE-LABlab(29.36, 44.53, -69.40)
CIE-LCHlch(29.36, 82.45, 302.69°)
OKLaboklab(41% 0.0128 -0.2007)
OKLCHoklch(41% 0.201 273.7)
XYZxyz(10.5186, 5.9802, 43.7711)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB4 #B2B42F
analogous
#2F70B4 #312FB4 #732FB4
triadic
#312FB4 #B4312F #2FB431
tetradic
#312FB4 #B42F70 #B2B42F #2FB473
square
#312FB4 #B42F70 #B2B42F #2FB473
split-complementary
#312FB4 #B4732F #70B42F
monochromatic
#171653 #242283 #312FB4 #514FD1 #8180DE

Accessibility & contrast

On white

9.56
#312FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#312FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB4
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB4#FFFFFF#000000##FFFFFF
##312FB41.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312fb4;
/* rgb */ color: rgb(49, 47, 180);
/* oklch */ color: oklch(41.0% 0.201 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d69cc',
    500: '#312fb4',
    950: '#000000',
  },
}
SCSS
$custom: #312fb4;
$custom-light: #7d69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb4",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 240.902,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41002,
    "c": 0.20115,
    "h": 273.7
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#312FB4
secondary
#C5C778
accent
#E246DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #312FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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