#2E1F92#2E1F92

#2E1F92 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 278.1°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#2E1F92
RGBrgb(46, 31, 146)
HSLhsl(248, 65%, 35%)
HSVhsv(248, 79%, 57%)
CMYKcmyk(68.5%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.43, 41.96, -60.21)
CIE-LCHlch(22.43, 73.39, 304.87°)
OKLaboklab(34.98% 0.0247 -0.1739)
OKLCHoklch(34.98% 0.176 278.1)
XYZxyz(6.8033, 3.6356, 27.5318)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F92 #83921F
analogous
#1F4A92 #2E1F92 #681F92
triadic
#2E1F92 #922E1F #1F922E
tetradic
#2E1F92 #921F4A #83921F #1F9268
square
#2E1F92 #921F4A #83921F #1F9268
split-complementary
#2E1F92 #92681F #4A921F
monochromatic
#0E0A2D #1E1460 #2E1F92 #3E2AC4 #6351DA

Accessibility & contrast

On white

12.16
#2E1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2E1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F92
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F92#FFFFFF#000000##FFFFFF
##2E1F921.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2e1f92;
/* rgb */ color: rgb(46, 31, 146);
/* oklch */ color: oklch(35.0% 0.176 278.1);
Tailwind
colors: {
  custom: {
    50: '#765eb3',
    500: '#2e1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f92;
$custom-light: #765eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f92",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 247.826,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34977,
    "c": 0.1757,
    "h": 278.1
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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