#2E31A6#2E31A6

#2E31A6 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.182 H 273.3°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2E31A6
RGBrgb(46, 49, 166)
HSLhsl(239, 57%, 42%)
HSVhsv(239, 72%, 65%)
CMYKcmyk(72.3%, 70.5%, 0%, 34.9%)
CIE-LABlab(28.19, 38.30, -62.94)
CIE-LCHlch(28.19, 73.67, 301.32°)
OKLaboklab(39.69% 0.0104 -0.182)
OKLCHoklch(39.69% 0.182 273.3)
XYZxyz(9.1057, 5.5297, 36.6565)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31A6 #A6A32E
analogous
#2E6DA6 #2E31A6 #672EA6
triadic
#2E31A6 #A62E31 #31A62E
tetradic
#2E31A6 #A62E6D #A6A32E #2EA667
square
#2E31A6 #A62E6D #A6A32E #2EA667
split-complementary
#2E31A6 #A6672E #6DA62E
monochromatic
#131546 #212376 #2E31A6 #4649CC #7678D9

Accessibility & contrast

On white

9.97
#2E31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2E31A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31A6
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31A6#FFFFFF#000000##FFFFFF
##2E31A61.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#003DA4
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2e31a6;
/* rgb */ color: rgb(46, 49, 166);
/* oklch */ color: oklch(39.7% 0.182 273.3);
Tailwind
colors: {
  custom: {
    50: '#796ac2',
    500: '#2e31a6',
    950: '#000000',
  },
}
SCSS
$custom: #2e31a6;
$custom-light: #796ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31a6",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 238.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39694,
    "c": 0.18229,
    "h": 273.3
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#2E31A6
secondary
#C1BF6F
accent
#DC48E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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