#2E1B92#2E1B92

#2E1B92 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.5% C 0.179 H 278.6°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2E1B92
RGBrgb(46, 27, 146)
HSLhsl(250, 69%, 34%)
HSVhsv(250, 82%, 57%)
CMYKcmyk(68.5%, 81.5%, 0%, 42.7%)
CIE-LABlab(21.72, 43.99, -61.38)
CIE-LCHlch(21.72, 75.52, 305.63°)
OKLaboklab(34.49% 0.0268 -0.1773)
OKLCHoklch(34.49% 0.179 278.6)
XYZxyz(6.7053, 3.4395, 27.4991)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B92 #7F921B
analogous
#1B4492 #2E1B92 #6A1B92
triadic
#2E1B92 #922E1B #1B922E
tetradic
#2E1B92 #921B44 #7F921B #1B926A
square
#2E1B92 #921B44 #7F921B #1B926A
split-complementary
#2E1B92 #926A1B #44921B
monochromatic
#0D082B #1E115E #2E1B92 #3E25C6 #614ADE

Accessibility & contrast

On white

12.44
#2E1B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2E1B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B92
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B92#FFFFFF#000000##FFFFFF
##2E1B921.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2e1b92;
/* rgb */ color: rgb(46, 27, 146);
/* oklch */ color: oklch(34.5% 0.179 278.6);
Tailwind
colors: {
  custom: {
    50: '#765bb3',
    500: '#2e1b92',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b92;
$custom-light: #765bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b92",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 146
  },
  "hsl": {
    "h": 249.58,
    "s": 68.786,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34487,
    "c": 0.1793,
    "h": 278.6
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#2E1B92
secondary
#ADBF49
accent
#EC3CD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2E1B92

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

Preview Lab → · Contrast checker → · Palette generator →

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