#2E1B9C#2E1B9C

#2E1B9C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.191 H 277.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2E1B9C
RGBrgb(46, 27, 156)
HSLhsl(249, 70%, 36%)
HSVhsv(249, 83%, 61%)
CMYKcmyk(70.5%, 82.7%, 0%, 38.8%)
CIE-LABlab(22.88, 47.05, -65.63)
CIE-LCHlch(22.88, 80.76, 305.64°)
OKLaboklab(35.62% 0.0238 -0.1897)
OKLCHoklch(35.62% 0.191 277.2)
XYZxyz(7.5174, 3.7643, 31.7765)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B9C #899C1B
analogous
#1B489C #2E1B9C #6E1B9C
triadic
#2E1B9C #9C2E1B #1B9C2E
tetradic
#2E1B9C #9C1B48 #899C1B #1B9C6E
square
#2E1B9C #9C1B48 #899C1B #1B9C6E
split-complementary
#2E1B9C #9C6E1B #489C1B
monochromatic
#0F0934 #1F1268 #2E1B9C #3D24D0 #6651E1

Accessibility & contrast

On white

11.98
#2E1B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2E1B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B9C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B9C#FFFFFF#000000##FFFFFF
##2E1B9C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9F
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2e1b9c;
/* rgb */ color: rgb(46, 27, 156);
/* oklch */ color: oklch(35.6% 0.191 277.2);
Tailwind
colors: {
  custom: {
    50: '#795cbb',
    500: '#2e1b9c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b9c;
$custom-light: #795cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b9c",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 248.837,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35622,
    "c": 0.19114,
    "h": 277.2
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#2E1B9C
secondary
#B2C34F
accent
#ED3BD3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2E1B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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