#2E1F84#2E1F84

#2E1F84 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.158 H 280.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1F84
RGBrgb(46, 31, 132)
HSLhsl(249, 62%, 32%)
HSVhsv(249, 77%, 52%)
CMYKcmyk(65.2%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.93, 37.45, -53.94)
CIE-LCHlch(20.93, 65.67, 304.77°)
OKLaboklab(33.48% 0.0283 -0.1557)
OKLCHoklch(33.48% 0.158 280.3)
XYZxyz(5.7802, 3.2263, 22.1435)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F84 #75841F
analogous
#1F4384 #2E1F84 #611F84
triadic
#2E1F84 #842E1F #1F842E
tetradic
#2E1F84 #841F43 #75841F #1F8461
square
#2E1F84 #841F43 #75841F #1F8461
split-complementary
#2E1F84 #84611F #43841F
monochromatic
#0B0821 #1D1352 #2E1F84 #3F2BB6 #5E49D4

Accessibility & contrast

On white

12.76
#2E1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F84
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F84#FFFFFF#000000##FFFFFF
##2E1F841.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1f84;
/* rgb */ color: rgb(46, 31, 132);
/* oklch */ color: oklch(33.5% 0.158 280.3);
Tailwind
colors: {
  custom: {
    50: '#735da9',
    500: '#2e1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f84;
$custom-light: #735da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f84",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 248.911,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33475,
    "c": 0.15821,
    "h": 280.3
  },
  "luminance": 0.03227
}

Semantic roles & 50–950 ramp

primary
#2E1F84
secondary
#A6B748
accent
#E543CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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