#312EBB#312EBB

#312EBB is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.6% C 0.211 H 273.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#312EBB
RGBrgb(49, 46, 187)
HSLhsl(241, 61%, 46%)
HSVhsv(241, 75%, 73%)
CMYKcmyk(73.8%, 75.4%, 0%, 26.7%)
CIE-LABlab(29.90, 47.38, -72.67)
CIE-LCHlch(29.90, 86.75, 303.10°)
OKLaboklab(41.6% 0.012 -0.2103)
OKLCHoklch(41.6% 0.211 273.3)
XYZxyz(11.2103, 6.1937, 47.6088)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312EBB #B8BB2E
analogous
#2E71BB #312EBB #782EBB
triadic
#312EBB #BB312E #2EBB31
tetradic
#312EBB #BB2E71 #B8BB2E #2EBB78
square
#312EBB #BB2E71 #B8BB2E #2EBB78
split-complementary
#312EBB #BB782E #71BB2E
monochromatic
#171659 #24228A #312EBB #5552D4 #8583E0

Accessibility & contrast

On white

9.38
#312EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#312EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312EBB
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312EBB#FFFFFF#000000##FFFFFF
##312EBB1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #312ebb;
/* rgb */ color: rgb(49, 46, 187);
/* oklch */ color: oklch(41.6% 0.211 273.3);
Tailwind
colors: {
  custom: {
    50: '#7f69d1',
    500: '#312ebb',
    950: '#000000',
  },
}
SCSS
$custom: #312ebb;
$custom-light: #7f69d1;
$custom-dark: #000000;
JSON
{
  "hex": "#312ebb",
  "rgb": {
    "r": 49,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 241.277,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41597,
    "c": 0.2106,
    "h": 273.3
  },
  "luminance": 0.06195
}

Semantic roles & 50–950 ramp

primary
#312EBB
secondary
#C8CA7B
accent
#E444E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #312EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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