#2E31AA#2E31AA

#2E31AA is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.1% C 0.187 H 273.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2E31AA
RGBrgb(46, 49, 170)
HSLhsl(239, 57%, 42%)
HSVhsv(239, 73%, 67%)
CMYKcmyk(72.9%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.59, 39.68, -64.70)
CIE-LCHlch(28.59, 75.90, 301.52°)
OKLaboklab(40.1% 0.0098 -0.1871)
OKLCHoklch(40.1% 0.187 273)
XYZxyz(9.4783, 5.6788, 38.6190)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31AA #AAA72E
analogous
#2E6FAA #2E31AA #692EAA
triadic
#2E31AA #AA2E31 #31AA2E
tetradic
#2E31AA #AA2E6F #AAA72E #2EAA69
square
#2E31AA #AA2E6F #AAA72E #2EAA69
split-complementary
#2E31AA #AA692E #6FAA2E
monochromatic
#14154A #21237A #2E31AA #484BCD #787ADA

Accessibility & contrast

On white

9.83
#2E31AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2E31AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31AA
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31AA#FFFFFF#000000##FFFFFF
##2E31AA1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e31aa;
/* rgb */ color: rgb(46, 49, 170);
/* oklch */ color: oklch(40.1% 0.187 273.0);
Tailwind
colors: {
  custom: {
    50: '#7a6ac4',
    500: '#2e31aa',
    950: '#000000',
  },
}
SCSS
$custom: #2e31aa;
$custom-light: #7a6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31aa",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 238.548,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.18739,
    "h": 273
  },
  "luminance": 0.0568
}

Semantic roles & 50–950 ramp

primary
#2E31AA
secondary
#C3C171
accent
#DD47E1
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2E31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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