#2E31A0#2E31A0

#2E31A0 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.175 H 273.7°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2E31A0
RGBrgb(46, 49, 160)
HSLhsl(238, 55%, 40%)
HSVhsv(238, 71%, 63%)
CMYKcmyk(71.2%, 69.4%, 0%, 37.3%)
CIE-LABlab(27.61, 36.20, -60.26)
CIE-LCHlch(27.61, 70.30, 301.00°)
OKLaboklab(39.1% 0.0112 -0.1742)
OKLCHoklch(39.1% 0.175 273.7)
XYZxyz(8.5681, 5.3147, 33.8252)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E31A0 #A09D2E
analogous
#2E6AA0 #2E31A0 #642EA0
triadic
#2E31A0 #A02E31 #31A02E
tetradic
#2E31A0 #A02E6A #A09D2E #2EA064
square
#2E31A0 #A02E6A #A09D2E #2EA064
split-complementary
#2E31A0 #A0642E #6AA02E
monochromatic
#131441 #202270 #2E31A0 #4246C9 #7275D6

Accessibility & contrast

On white

10.18
#2E31A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2E31A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E31A0
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E31A0#FFFFFF#000000##FFFFFF
##2E31A01.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#003C9E
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e31a0;
/* rgb */ color: rgb(46, 49, 160);
/* oklch */ color: oklch(39.1% 0.175 273.7);
Tailwind
colors: {
  custom: {
    50: '#776abd',
    500: '#2e31a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e31a0;
$custom-light: #776abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e31a0",
  "rgb": {
    "r": 46,
    "g": 49,
    "b": 160
  },
  "hsl": {
    "h": 238.421,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39099,
    "c": 0.17453,
    "h": 273.7
  },
  "luminance": 0.05316
}

Semantic roles & 50–950 ramp

primary
#2E31A0
secondary
#BEBC6C
accent
#DB49DF
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2E31A0

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

Preview Lab → · Contrast checker → · Palette generator →

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