#312FB8#312FB8

#312FB8 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.206 H 273.4°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#312FB8
RGBrgb(49, 47, 184)
HSLhsl(241, 59%, 45%)
HSVhsv(241, 74%, 72%)
CMYKcmyk(73.4%, 74.5%, 0%, 27.8%)
CIE-LABlab(29.78, 45.84, -71.09)
CIE-LCHlch(29.78, 84.59, 302.82°)
OKLaboklab(41.42% 0.0121 -0.2057)
OKLCHoklch(41.42% 0.206 273.4)
XYZxyz(10.9320, 6.1456, 45.9482)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312FB8 #B6B82F
analogous
#2F71B8 #312FB8 #752FB8
triadic
#312FB8 #B8312F #2FB831
tetradic
#312FB8 #B82F71 #B6B82F #2FB875
square
#312FB8 #B82F71 #B6B82F #2FB875
split-complementary
#312FB8 #B8752F #71B82F
monochromatic
#171657 #242387 #312FB8 #5352D3 #8482DF

Accessibility & contrast

On white

9.42
#312FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#312FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312FB8
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312FB8#FFFFFF#000000##FFFFFF
##312FB81.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312fb8;
/* rgb */ color: rgb(49, 47, 184);
/* oklch */ color: oklch(41.4% 0.206 273.4);
Tailwind
colors: {
  custom: {
    50: '#7e69cf',
    500: '#312fb8',
    950: '#000000',
  },
}
SCSS
$custom: #312fb8;
$custom-light: #7e69cf;
$custom-dark: #000000;
JSON
{
  "hex": "#312fb8",
  "rgb": {
    "r": 49,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 240.876,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.20603,
    "h": 273.4
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#312FB8
secondary
#C7C87B
accent
#E245E0
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #312FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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