#2E1C8A#2E1C8A

#2E1C8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.169 H 279.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2E1C8A
RGBrgb(46, 28, 138)
HSLhsl(250, 66%, 33%)
HSVhsv(250, 80%, 54%)
CMYKcmyk(66.7%, 79.7%, 0%, 45.9%)
CIE-LABlab(21.00, 41.00, -57.59)
CIE-LCHlch(21.00, 70.69, 305.45°)
OKLaboklab(33.72% 0.0286 -0.1663)
OKLCHoklch(33.72% 0.169 279.8)
XYZxyz(6.1280, 3.2458, 24.3434)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C8A #788A1C
analogous
#1C418A #2E1C8A #651C8A
triadic
#2E1C8A #8A2E1C #1C8A2E
tetradic
#2E1C8A #8A1C41 #788A1C #1C8A65
square
#2E1C8A #8A1C41 #788A1C #1C8A65
split-complementary
#2E1C8A #8A651C #418A1C
monochromatic
#0C0724 #1D1257 #2E1C8A #3F26BD #5F47DA

Accessibility & contrast

On white

12.73
#2E1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C8A
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C8A#FFFFFF#000000##FFFFFF
##2E1C8A1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2e1c8a;
/* rgb */ color: rgb(46, 28, 138);
/* oklch */ color: oklch(33.7% 0.169 279.8);
Tailwind
colors: {
  custom: {
    50: '#745bad',
    500: '#2e1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c8a;
$custom-light: #745bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c8a",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 249.818,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3372,
    "c": 0.16871,
    "h": 279.8
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#2E1C8A
secondary
#A8BB46
accent
#E93FCD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2E1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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