#2E1B72#2E1B72

#2E1B72 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.140 H 284.9°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1B72
RGBrgb(46, 27, 114)
HSLhsl(253, 62%, 28%)
HSVhsv(253, 76%, 45%)
CMYKcmyk(59.6%, 76.3%, 0%, 55.3%)
CIE-LABlab(18.27, 33.88, -46.83)
CIE-LCHlch(18.27, 57.80, 305.89°)
OKLaboklab(31.04% 0.0358 -0.1348)
OKLCHoklch(31.04% 0.14 284.9)
XYZxyz(4.5550, 2.5793, 16.1742)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1B72 #5F721B
analogous
#1B3472 #2E1B72 #591B72
triadic
#2E1B72 #722E1B #1B722E
tetradic
#2E1B72 #721B34 #5F721B #1B7259
square
#2E1B72 #721B34 #5F721B #1B7259
split-complementary
#2E1B72 #72591B #34721B
monochromatic
#0A0619 #1A0F41 #2E1B72 #4227A3 #5938D0

Accessibility & contrast

On white

13.85
#2E1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2E1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1B72
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1B72#FFFFFF#000000##FFFFFF
##2E1B721.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#0B3345
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1b72;
/* rgb */ color: rgb(46, 27, 114);
/* oklch */ color: oklch(31.0% 0.140 284.9);
Tailwind
colors: {
  custom: {
    50: '#70599b',
    500: '#2e1b72',
    950: '#000000',
  },
}
SCSS
$custom: #2e1b72;
$custom-light: #70599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1b72",
  "rgb": {
    "r": 46,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 253.103,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31039,
    "c": 0.1395,
    "h": 284.9
  },
  "luminance": 0.0258
}

Semantic roles & 50–950 ramp

primary
#2E1B72
secondary
#91A742
accent
#E543C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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