#2E1F73#2E1F73

#2E1F73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.136 H 283.6°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1F73
RGBrgb(46, 31, 115)
HSLhsl(251, 58%, 29%)
HSVhsv(251, 73%, 45%)
CMYKcmyk(60%, 73%, 0%, 54.9%)
CIE-LABlab(19.22, 31.86, -45.93)
CIE-LCHlch(19.22, 55.89, 304.75°)
OKLaboklab(31.74% 0.0321 -0.1322)
OKLCHoklch(31.74% 0.136 283.6)
XYZxyz(4.7103, 2.7983, 16.5083)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F73 #64731F
analogous
#1F3A73 #2E1F73 #581F73
triadic
#2E1F73 #732E1F #1F732E
tetradic
#2E1F73 #731F3A #64731F #1F7358
square
#2E1F73 #731F3A #64731F #1F7358
split-complementary
#2E1F73 #73581F #3A731F
monochromatic
#0A0618 #1B1243 #2E1F73 #412CA3 #5A41CC

Accessibility & contrast

On white

13.46
#2E1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1F73
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1F73#FFFFFF#000000##FFFFFF
##2E1F731.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#093546
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2e1f73;
/* rgb */ color: rgb(46, 31, 115);
/* oklch */ color: oklch(31.7% 0.136 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f5c9c',
    500: '#2e1f73',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f73;
$custom-light: #6f5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f73",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 250.714,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3174,
    "c": 0.13605,
    "h": 283.6
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#2E1F73
secondary
#96A747
accent
#E147C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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