#2E1E9D#2E1E9D

#2E1E9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.190 H 276.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2E1E9D
RGBrgb(46, 30, 157)
HSLhsl(248, 68%, 37%)
HSVhsv(248, 81%, 62%)
CMYKcmyk(70.7%, 80.9%, 0%, 38.4%)
CIE-LABlab(23.48, 45.93, -65.24)
CIE-LCHlch(23.48, 79.79, 305.15°)
OKLaboklab(36.08% 0.0222 -0.1886)
OKLCHoklch(36.08% 0.19 276.7)
XYZxyz(7.6748, 3.9430, 32.2484)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E9D #8D9D1E
analogous
#1E4E9D #2E1E9D #6E1E9D
triadic
#2E1E9D #9D2E1E #1E9D2E
tetradic
#2E1E9D #9D1E4E #8D9D1E #1E9D6E
square
#2E1E9D #9D1E4E #8D9D1E #1E9D6E
split-complementary
#2E1E9D #9D6E1E #4E9D1E
monochromatic
#100A36 #1F146A #2E1E9D #3D28D0 #6857DF

Accessibility & contrast

On white

11.74
#2E1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2E1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E9D
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E9D#FFFFFF#000000##FFFFFF
##2E1E9D1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2e1e9d;
/* rgb */ color: rgb(46, 30, 157);
/* oklch */ color: oklch(36.1% 0.190 276.7);
Tailwind
colors: {
  custom: {
    50: '#795ebb',
    500: '#2e1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e9d;
$custom-light: #795ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e9d",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 247.559,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36076,
    "c": 0.18987,
    "h": 276.7
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#2E1E9D
secondary
#B5C254
accent
#EB3DD5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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