#312FB5#312FB5

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

Color values

HEX#312FB5
RGBrgb(49, 47, 181)
HSLhsl(241, 59%, 45%)
HSVhsv(241, 74%, 71%)
CMYKcmyk(72.9%, 74%, 0%, 29%)
CIE-LABlab(29.47, 44.86, -69.82)
CIE-LCHlch(29.47, 82.99, 302.72°)
OKLaboklab(41.11% 0.0126 -0.202)
OKLCHoklch(41.11% 0.202 273.6)
XYZxyz(10.6208, 6.0211, 44.3096)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB5 #B3B52F
analogous
#2F70B5 #312FB5 #742FB5
triadic
#312FB5 #B5312F #2FB531
tetradic
#312FB5 #B52F70 #B3B52F #2FB574
square
#312FB5 #B52F70 #B3B52F #2FB574
split-complementary
#312FB5 #B5742F #70B52F
monochromatic
#171654 #242284 #312FB5 #5250D1 #8280DE

Accessibility & contrast

On white

9.53
#312FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312FB5
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB5#FFFFFF#000000##FFFFFF
##312FB51.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#003FB3
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #312fb5;
/* rgb */ color: rgb(49, 47, 181);
/* oklch */ color: oklch(41.1% 0.202 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e69cc',
    500: '#312fb5',
    950: '#000000',
  },
}
SCSS
$custom: #312fb5;
$custom-light: #7e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb5",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 240.896,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41106,
    "c": 0.20238,
    "h": 273.6
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#312FB5
secondary
#C6C779
accent
#E246E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #312FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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