#2E1B95#2E1B95

#2E1B95 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.183 H 278.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2E1B95
RGBrgb(46, 27, 149)
HSLhsl(249, 69%, 35%)
HSVhsv(249, 82%, 58%)
CMYKcmyk(69.1%, 81.9%, 0%, 41.6%)
CIE-LABlab(22.07, 44.92, -62.67)
CIE-LCHlch(22.07, 77.10, 305.63°)
OKLaboklab(34.83% 0.0259 -0.181)
OKLCHoklch(34.83% 0.183 278.2)
XYZxyz(6.9417, 3.5340, 28.7443)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B95 #82951B
analogous
#1B4595 #2E1B95 #6B1B95
triadic
#2E1B95 #952E1B #1B952E
tetradic
#2E1B95 #951B45 #82951B #1B956B
square
#2E1B95 #951B45 #82951B #1B956B
split-complementary
#2E1B95 #956B1B #45951B
monochromatic
#0E082D #1E1261 #2E1B95 #3E24C9 #634CDF

Accessibility & contrast

On white

12.30
#2E1B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2E1B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B95
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B95#FFFFFF#000000##FFFFFF
##2E1B951.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2e1b95;
/* rgb */ color: rgb(46, 27, 149);
/* oklch */ color: oklch(34.8% 0.183 278.2);
Tailwind
colors: {
  custom: {
    50: '#775cb5',
    500: '#2e1b95',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b95;
$custom-light: #775cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b95",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 249.344,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34825,
    "c": 0.18288,
    "h": 278.2
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#2E1B95
secondary
#AEC14B
accent
#EC3CD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B95

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

Preview Lab → · Contrast checker → · Palette generator →

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