#2E1B8E#2E1B8E

#2E1B8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.174 H 279.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8E
RGBrgb(46, 27, 142)
HSLhsl(250, 68%, 33%)
HSVhsv(250, 81%, 56%)
CMYKcmyk(67.6%, 81%, 0%, 44.3%)
CIE-LABlab(21.27, 42.76, -59.64)
CIE-LCHlch(21.27, 73.38, 305.64°)
OKLaboklab(34.04% 0.028 -0.1722)
OKLCHoklch(34.04% 0.174 279.2)
XYZxyz(6.3996, 3.3172, 25.8890)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8E #7B8E1B
analogous
#1B418E #2E1B8E #671B8E
triadic
#2E1B8E #8E2E1B #1B8E2E
tetradic
#2E1B8E #8E1B41 #7B8E1B #1B8E67
square
#2E1B8E #8E1B41 #7B8E1B #1B8E67
split-complementary
#2E1B8E #8E671B #418E1B
monochromatic
#0D0727 #1D115B #2E1B8E #3F25C1 #6047DC

Accessibility & contrast

On white

12.62
#2E1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1B8E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8E#FFFFFF#000000##FFFFFF
##2E1B8E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1b8e;
/* rgb */ color: rgb(46, 27, 142);
/* oklch */ color: oklch(34.0% 0.174 279.2);
Tailwind
colors: {
  custom: {
    50: '#755bb0',
    500: '#2e1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8e;
$custom-light: #755bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8e",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 249.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34039,
    "c": 0.17449,
    "h": 279.2
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#2E1B8E
secondary
#AABE47
accent
#EB3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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