#2E1F81#2E1F81

#2E1F81 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.154 H 280.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2E1F81
RGBrgb(46, 31, 129)
HSLhsl(249, 61%, 31%)
HSVhsv(249, 76%, 51%)
CMYKcmyk(64.3%, 76%, 0%, 49.4%)
CIE-LABlab(20.62, 36.47, -52.56)
CIE-LCHlch(20.62, 63.98, 304.76°)
OKLaboklab(33.16% 0.029 -0.1516)
OKLCHoklch(33.16% 0.154 280.8)
XYZxyz(5.5779, 3.1454, 21.0778)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F81 #72811F
analogous
#1F4181 #2E1F81 #5F1F81
triadic
#2E1F81 #812E1F #1F812E
tetradic
#2E1F81 #811F41 #72811F #1F815F
square
#2E1F81 #811F41 #72811F #1F815F
split-complementary
#2E1F81 #815F1F #41811F
monochromatic
#0B071E #1C1350 #2E1F81 #402BB2 #5D47D3

Accessibility & contrast

On white

12.89
#2E1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2E1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F81
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F81#FFFFFF#000000##FFFFFF
##2E1F811.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1f81;
/* rgb */ color: rgb(46, 31, 129);
/* oklch */ color: oklch(33.2% 0.154 280.8);
Tailwind
colors: {
  custom: {
    50: '#725da7',
    500: '#2e1f81',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f81;
$custom-light: #725da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f81",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 249.184,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33161,
    "c": 0.15438,
    "h": 280.8
  },
  "luminance": 0.03146
}

Semantic roles & 50–950 ramp

primary
#2E1F81
secondary
#A3B448
accent
#E443CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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