#2E1F86#2E1F86

#2E1F86 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.161 H 280.0°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1F86
RGBrgb(46, 31, 134)
HSLhsl(249, 62%, 32%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(65.7%, 76.9%, 0%, 47.5%)
CIE-LABlab(21.14, 38.10, -54.86)
CIE-LCHlch(21.14, 66.79, 304.78°)
OKLaboklab(33.69% 0.0278 -0.1583)
OKLCHoklch(33.69% 0.161 280)
XYZxyz(5.9184, 3.2816, 22.8712)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F86 #77861F
analogous
#1F4386 #2E1F86 #621F86
triadic
#2E1F86 #862E1F #1F862E
tetradic
#2E1F86 #861F43 #77861F #1F8662
square
#2E1F86 #861F43 #77861F #1F8662
split-complementary
#2E1F86 #86621F #43861F
monochromatic
#0C0823 #1D1454 #2E1F86 #3F2AB8 #5E4AD5

Accessibility & contrast

On white

12.68
#2E1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2E1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F86
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F86#FFFFFF#000000##FFFFFF
##2E1F861.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1f86;
/* rgb */ color: rgb(46, 31, 134);
/* oklch */ color: oklch(33.7% 0.161 280.0);
Tailwind
colors: {
  custom: {
    50: '#735daa',
    500: '#2e1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f86;
$custom-light: #735daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f86",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 248.738,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33686,
    "c": 0.16076,
    "h": 280
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#2E1F86
secondary
#A8B849
accent
#E542CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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