#2E1F91#2E1F91

#2E1F91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.174 H 278.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2E1F91
RGBrgb(46, 31, 145)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 57%)
CMYKcmyk(68.3%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.32, 41.64, -59.78)
CIE-LCHlch(22.32, 72.85, 304.86°)
OKLaboklab(34.87% 0.025 -0.1727)
OKLCHoklch(34.87% 0.174 278.2)
XYZxyz(6.7259, 3.6046, 27.1239)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F91 #82911F
analogous
#1F4991 #2E1F91 #671F91
triadic
#2E1F91 #912E1F #1F912E
tetradic
#2E1F91 #911F49 #82911F #1F9167
square
#2E1F91 #911F49 #82911F #1F9167
split-complementary
#2E1F91 #91671F #49911F
monochromatic
#0E092C #1E145F #2E1F91 #3E2AC3 #6351DA

Accessibility & contrast

On white

12.20
#2E1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2E1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F91
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F91#FFFFFF#000000##FFFFFF
##2E1F911.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1f91;
/* rgb */ color: rgb(46, 31, 145);
/* oklch */ color: oklch(34.9% 0.174 278.2);
Tailwind
colors: {
  custom: {
    50: '#765eb2',
    500: '#2e1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f91;
$custom-light: #765eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f91",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 247.895,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34868,
    "c": 0.17447,
    "h": 278.2
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#2E1F91
secondary
#AEBD4F
accent
#E840D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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