#2E31B8#2E31B8

#2E31B8 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.205 H 272.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2E31B8
RGBrgb(46, 49, 184)
HSLhsl(239, 60%, 45%)
HSVhsv(239, 75%, 72%)
CMYKcmyk(75%, 73.4%, 0%, 27.8%)
CIE-LABlab(30.00, 44.44, -70.72)
CIE-LCHlch(30.00, 83.53, 302.14°)
OKLaboklab(41.53% 0.0077 -0.2047)
OKLCHoklch(41.53% 0.205 272.1)
XYZxyz(10.8738, 6.2370, 45.9689)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31B8 #B8B52E
analogous
#2E76B8 #2E31B8 #702EB8
triadic
#2E31B8 #B82E31 #31B82E
tetradic
#2E31B8 #B82E76 #B8B52E #2EB870
square
#2E31B8 #B82E76 #B8B52E #2EB870
split-complementary
#2E31B8 #B8702E #76B82E
monochromatic
#161756 #222487 #2E31B8 #5053D3 #8183DF

Accessibility & contrast

On white

9.34
#2E31B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2E31B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31B8
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31B8#FFFFFF#000000##FFFFFF
##2E31B81.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBC
Deuteranopia (green-blind)
#0040B6
Tritanopia (blue-blind)
#005872
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2e31b8;
/* rgb */ color: rgb(46, 49, 184);
/* oklch */ color: oklch(41.5% 0.205 272.1);
Tailwind
colors: {
  custom: {
    50: '#7d6bcf',
    500: '#2e31b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e31b8;
$custom-light: #7d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31b8",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 238.696,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.41532,
    "c": 0.20483,
    "h": 272.1
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#2E31B8
secondary
#C8C779
accent
#E045E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2E31B8

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

Preview Lab → · Contrast checker → · Palette generator →

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