#2E31B9#2E31B9

#2E31B9 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.6% C 0.206 H 272.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2E31B9
RGBrgb(46, 49, 185)
HSLhsl(239, 60%, 45%)
HSVhsv(239, 75%, 73%)
CMYKcmyk(75.1%, 73.5%, 0%, 27.5%)
CIE-LABlab(30.11, 44.77, -71.14)
CIE-LCHlch(30.11, 84.06, 302.18°)
OKLaboklab(41.64% 0.0075 -0.2059)
OKLCHoklch(41.64% 0.206 272.1)
XYZxyz(10.9790, 6.2791, 46.5229)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31B9 #B9B62E
analogous
#2E76B9 #2E31B9 #702EB9
triadic
#2E31B9 #B92E31 #31B92E
tetradic
#2E31B9 #B92E76 #B9B62E #2EB970
square
#2E31B9 #B92E76 #B9B62E #2EB970
split-complementary
#2E31B9 #B9702E #76B92E
monochromatic
#161757 #222488 #2E31B9 #5153D4 #8284E0

Accessibility & contrast

On white

9.31
#2E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2E31B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31B9
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31B9#FFFFFF#000000##FFFFFF
##2E31B91.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e31b9;
/* rgb */ color: rgb(46, 49, 185);
/* oklch */ color: oklch(41.6% 0.206 272.1);
Tailwind
colors: {
  custom: {
    50: '#7d6bcf',
    500: '#2e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #2e31b9;
$custom-light: #7d6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31b9",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 238.705,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.41637,
    "c": 0.20606,
    "h": 272.1
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#2E31B9
secondary
#C9C77A
accent
#E044E3
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #2E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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