#2E31B6#2E31B6

#2E31B6 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.3% C 0.202 H 272.3°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#2E31B6
RGBrgb(46, 49, 182)
HSLhsl(239, 60%, 45%)
HSVhsv(239, 75%, 71%)
CMYKcmyk(74.7%, 73.1%, 0%, 28.6%)
CIE-LABlab(29.80, 43.77, -69.87)
CIE-LCHlch(29.80, 82.45, 302.06°)
OKLaboklab(41.32% 0.008 -0.2022)
OKLCHoklch(41.32% 0.202 272.3)
XYZxyz(10.6657, 6.1537, 44.8726)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31B6 #B6B32E
analogous
#2E75B6 #2E31B6 #6F2EB6
triadic
#2E31B6 #B62E31 #31B62E
tetradic
#2E31B6 #B62E75 #B6B32E #2EB66F
square
#2E31B6 #B62E75 #B6B32E #2EB66F
split-complementary
#2E31B6 #B66F2E #75B62E
monochromatic
#151754 #222485 #2E31B6 #4F52D2 #8082DF

Accessibility & contrast

On white

9.41
#2E31B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2E31B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31B6
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31B6#FFFFFF#000000##FFFFFF
##2E31B61.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBA
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#005770
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2e31b6;
/* rgb */ color: rgb(46, 49, 182);
/* oklch */ color: oklch(41.3% 0.202 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d6acd',
    500: '#2e31b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e31b6;
$custom-light: #7d6acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31b6",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 238.676,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.41324,
    "c": 0.20238,
    "h": 272.3
  },
  "luminance": 0.06155
}

Semantic roles & 50–950 ramp

primary
#2E31B6
secondary
#C8C678
accent
#DF45E3
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E31B6

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

Preview Lab → · Contrast checker → · Palette generator →

#2E31B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva