#2E1A9E#2E1A9E

#2E1A9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.194 H 277.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2E1A9E
RGBrgb(46, 26, 158)
HSLhsl(249, 72%, 36%)
HSVhsv(249, 84%, 62%)
CMYKcmyk(70.9%, 83.5%, 0%, 38%)
CIE-LABlab(22.96, 48.11, -66.73)
CIE-LCHlch(22.96, 82.26, 305.79°)
OKLaboklab(35.74% 0.0236 -0.1928)
OKLCHoklch(35.74% 0.194 277)
XYZxyz(7.6657, 3.7875, 32.6682)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1A9E #8A9E1A
analogous
#1A489E #2E1A9E #701A9E
triadic
#2E1A9E #9E2E1A #1A9E2E
tetradic
#2E1A9E #9E1A48 #8A9E1A #1A9E70
square
#2E1A9E #9E1A48 #8A9E1A #1A9E70
split-complementary
#2E1A9E #9E701A #489E1A
monochromatic
#0F0935 #1F1169 #2E1A9E #3D23D3 #6650E2

Accessibility & contrast

On white

11.95
#2E1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2E1A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1A9E
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1A9E#FFFFFF#000000##FFFFFF
##2E1A9E1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1a9e;
/* rgb */ color: rgb(46, 26, 158);
/* oklch */ color: oklch(35.7% 0.194 277.0);
Tailwind
colors: {
  custom: {
    50: '#795cbc',
    500: '#2e1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1a9e;
$custom-light: #795cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1a9e",
  "rgb": {
    "r": 46,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 249.091,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35745,
    "c": 0.19424,
    "h": 277
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#2E1A9E
secondary
#B3C54F
accent
#EE39D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2E1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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