#2E1B8C#2E1B8C

#2E1B8C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.172 H 279.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2E1B8C
RGBrgb(46, 27, 140)
HSLhsl(250, 68%, 33%)
HSVhsv(250, 81%, 55%)
CMYKcmyk(67.1%, 80.7%, 0%, 45.1%)
CIE-LABlab(21.05, 42.14, -58.77)
CIE-LCHlch(21.05, 72.31, 305.64°)
OKLaboklab(33.82% 0.0286 -0.1697)
OKLCHoklch(33.82% 0.172 279.6)
XYZxyz(6.2508, 3.2576, 25.1052)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B8C #798C1B
analogous
#1B418C #2E1B8C #661B8C
triadic
#2E1B8C #8C2E1B #1B8C2E
tetradic
#2E1B8C #8C1B41 #798C1B #1B8C66
square
#2E1B8C #8C1B41 #798C1B #1B8C66
split-complementary
#2E1B8C #8C661B #418C1B
monochromatic
#0C0725 #1D1159 #2E1B8C #3F25BF #5F46DB

Accessibility & contrast

On white

12.71
#2E1B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2E1B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B8C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B8C#FFFFFF#000000##FFFFFF
##2E1B8C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2e1b8c;
/* rgb */ color: rgb(46, 27, 140);
/* oklch */ color: oklch(33.8% 0.172 279.6);
Tailwind
colors: {
  custom: {
    50: '#755baf',
    500: '#2e1b8c',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b8c;
$custom-light: #755baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b8c",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 250.088,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33817,
    "c": 0.17207,
    "h": 279.6
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#2E1B8C
secondary
#A9BD46
accent
#EB3DCD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2E1B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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