#2E1F87#2E1F87

#2E1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.162 H 279.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1F87
RGBrgb(46, 31, 135)
HSLhsl(249, 63%, 33%)
HSVhsv(249, 77%, 53%)
CMYKcmyk(65.9%, 77%, 0%, 47.1%)
CIE-LABlab(21.24, 38.43, -55.31)
CIE-LCHlch(21.24, 67.35, 304.79°)
OKLaboklab(33.79% 0.0276 -0.1596)
OKLCHoklch(33.79% 0.162 279.8)
XYZxyz(5.9885, 3.3096, 23.2402)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F87 #78871F
analogous
#1F4487 #2E1F87 #621F87
triadic
#2E1F87 #872E1F #1F872E
tetradic
#2E1F87 #871F44 #78871F #1F8762
square
#2E1F87 #871F44 #78871F #1F8762
split-complementary
#2E1F87 #87621F #44871F
monochromatic
#0C0823 #1D1455 #2E1F87 #3F2AB9 #5F4BD6

Accessibility & contrast

On white

12.64
#2E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F87
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F87#FFFFFF#000000##FFFFFF
##2E1F871.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1f87;
/* rgb */ color: rgb(46, 31, 135);
/* oklch */ color: oklch(33.8% 0.162 279.8);
Tailwind
colors: {
  custom: {
    50: '#745dab',
    500: '#2e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f87;
$custom-light: #745dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f87",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 248.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33792,
    "c": 0.16201,
    "h": 279.8
  },
  "luminance": 0.0331
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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