#2E31BB#2E31BB

#2E31BB is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 41.8% C 0.208 H 272.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2E31BB
RGBrgb(46, 49, 187)
HSLhsl(239, 61%, 46%)
HSVhsv(239, 75%, 73%)
CMYKcmyk(75.4%, 73.8%, 0%, 26.7%)
CIE-LABlab(30.31, 45.44, -71.99)
CIE-LCHlch(30.31, 85.13, 302.26°)
OKLaboklab(41.85% 0.0072 -0.2084)
OKLCHoklch(41.85% 0.208 272)
XYZxyz(11.1916, 6.3641, 47.6426)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31BB #BBB82E
analogous
#2E78BB #2E31BB #712EBB
triadic
#2E31BB #BB2E31 #31BB2E
tetradic
#2E31BB #BB2E78 #BBB82E #2EBB71
square
#2E31BB #BB2E78 #BBB82E #2EBB71
split-complementary
#2E31BB #BB712E #78BB2E
monochromatic
#161759 #22248A #2E31BB #5255D4 #8385E0

Accessibility & contrast

On white

9.24
#2E31BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2E31BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31BB
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31BB#FFFFFF#000000##FFFFFF
##2E31BB1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBF
Deuteranopia (green-blind)
#0040B9
Tritanopia (blue-blind)
#005973
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e31bb;
/* rgb */ color: rgb(46, 49, 187);
/* oklch */ color: oklch(41.8% 0.208 272.0);
Tailwind
colors: {
  custom: {
    50: '#7e6bd1',
    500: '#2e31bb',
    950: '#000000',
  },
}
SCSS
$custom: #2e31bb;
$custom-light: #7e6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31bb",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 238.723,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.20849,
    "h": 272
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#2E31BB
secondary
#CAC87B
accent
#E044E4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2E31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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