#2E1F8A#2E1F8A

#2E1F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.166 H 279.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1F8A
RGBrgb(46, 31, 138)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 78%, 54%)
CMYKcmyk(66.7%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.56, 39.40, -56.67)
CIE-LCHlch(21.56, 69.02, 304.81°)
OKLaboklab(34.11% 0.0268 -0.1636)
OKLCHoklch(34.11% 0.166 279.3)
XYZxyz(6.2027, 3.3953, 24.3683)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F8A #7B8A1F
analogous
#1F458A #2E1F8A #631F8A
triadic
#2E1F8A #8A2E1F #1F8A2E
tetradic
#2E1F8A #8A1F45 #7B8A1F #1F8A63
square
#2E1F8A #8A1F45 #7B8A1F #1F8A63
split-complementary
#2E1F8A #8A631F #458A1F
monochromatic
#0D0926 #1D1458 #2E1F8A #3F2ABC #604CD7

Accessibility & contrast

On white

12.51
#2E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F8A
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F8A#FFFFFF#000000##FFFFFF
##2E1F8A1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1f8a;
/* rgb */ color: rgb(46, 31, 138);
/* oklch */ color: oklch(34.1% 0.166 279.3);
Tailwind
colors: {
  custom: {
    50: '#745dad',
    500: '#2e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f8a;
$custom-light: #745dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f8a",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 248.411,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34112,
    "c": 0.16578,
    "h": 279.3
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#2E1F8A
secondary
#AABA4B
accent
#E641CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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