#2E1F88#2E1F88

#2E1F88 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.163 H 279.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2E1F88
RGBrgb(46, 31, 136)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(66.2%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.35, 38.75, -55.76)
CIE-LCHlch(21.35, 67.91, 304.80°)
OKLaboklab(33.9% 0.0273 -0.161)
OKLCHoklch(33.9% 0.163 279.6)
XYZxyz(6.0592, 3.3379, 23.6128)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F88 #79881F
analogous
#1F4588 #2E1F88 #621F88
triadic
#2E1F88 #882E1F #1F882E
tetradic
#2E1F88 #881F45 #79881F #1F8862
square
#2E1F88 #881F45 #79881F #1F8862
split-complementary
#2E1F88 #88621F #45881F
monochromatic
#0C0824 #1D1456 #2E1F88 #3F2ABA #5F4BD6

Accessibility & contrast

On white

12.59
#2E1F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2E1F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F88
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F88#FFFFFF#000000##FFFFFF
##2E1F881.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1f88;
/* rgb */ color: rgb(46, 31, 136);
/* oklch */ color: oklch(33.9% 0.163 279.6);
Tailwind
colors: {
  custom: {
    50: '#745dac',
    500: '#2e1f88',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f88;
$custom-light: #745dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f88",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 248.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33898,
    "c": 0.16327,
    "h": 279.6
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#2E1F88
secondary
#A9B94A
accent
#E642CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1F88

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

Preview Lab → · Contrast checker → · Palette generator →

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