#2E1F72#2E1F72

#2E1F72 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.135 H 283.9°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2E1F72
RGBrgb(46, 31, 114)
HSLhsl(251, 57%, 28%)
HSVhsv(251, 73%, 45%)
CMYKcmyk(59.6%, 72.8%, 0%, 55.3%)
CIE-LABlab(19.12, 31.53, -45.44)
CIE-LCHlch(19.12, 55.30, 304.75°)
OKLaboklab(31.64% 0.0323 -0.1308)
OKLCHoklch(31.64% 0.135 283.9)
XYZxyz(4.6530, 2.7754, 16.2068)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F72 #63721F
analogous
#1F3972 #2E1F72 #571F72
triadic
#2E1F72 #722E1F #1F722E
tetradic
#2E1F72 #721F39 #63721F #1F7257
square
#2E1F72 #721F39 #63721F #1F7257
split-complementary
#2E1F72 #72571F #39721F
monochromatic
#0A0718 #1B1242 #2E1F72 #412CA2 #5940CB

Accessibility & contrast

On white

13.50
#2E1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2E1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1F72
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F72#FFFFFF#000000##FFFFFF
##2E1F721.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#0A3546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e1f72;
/* rgb */ color: rgb(46, 31, 114);
/* oklch */ color: oklch(31.6% 0.135 283.9);
Tailwind
colors: {
  custom: {
    50: '#6f5c9b',
    500: '#2e1f72',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f72;
$custom-light: #6f5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f72",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 250.843,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31642,
    "c": 0.1347,
    "h": 283.9
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#2E1F72
secondary
#95A647
accent
#E047C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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