#2E1F82#2E1F82

#2E1F82 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.156 H 280.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1F82
RGBrgb(46, 31, 130)
HSLhsl(249, 61%, 32%)
HSVhsv(249, 76%, 51%)
CMYKcmyk(64.6%, 76.2%, 0%, 49%)
CIE-LABlab(20.72, 36.80, -53.03)
CIE-LCHlch(20.72, 64.54, 304.76°)
OKLaboklab(33.27% 0.0288 -0.153)
OKLCHoklch(33.27% 0.156 280.7)
XYZxyz(5.6447, 3.1721, 21.4296)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F82 #73821F
analogous
#1F4282 #2E1F82 #601F82
triadic
#2E1F82 #822E1F #1F822E
tetradic
#2E1F82 #821F42 #73821F #1F8260
square
#2E1F82 #821F42 #73821F #1F8260
split-complementary
#2E1F82 #82601F #42821F
monochromatic
#0B071F #1D1351 #2E1F82 #3F2BB3 #5D48D3

Accessibility & contrast

On white

12.85
#2E1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F82
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F82#FFFFFF#000000##FFFFFF
##2E1F821.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1f82;
/* rgb */ color: rgb(46, 31, 130);
/* oklch */ color: oklch(33.3% 0.156 280.7);
Tailwind
colors: {
  custom: {
    50: '#725da7',
    500: '#2e1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f82;
$custom-light: #725da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f82",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 249.091,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33265,
    "c": 0.15567,
    "h": 280.7
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#2E1F82
secondary
#A4B548
accent
#E543CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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