#2E1F69#2E1F69

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

Color values

HEX#2E1F69
RGBrgb(46, 31, 105)
HSLhsl(252, 54%, 27%)
HSVhsv(252, 70%, 41%)
CMYKcmyk(56.2%, 70.5%, 0%, 58.8%)
CIE-LABlab(18.28, 28.53, -40.97)
CIE-LCHlch(18.28, 49.93, 304.85°)
OKLaboklab(30.78% 0.0338 -0.1177)
OKLCHoklch(30.78% 0.122 286)
XYZxyz(4.1657, 2.5805, 13.6404)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1F69 #5A691F
analogous
#1F3569 #2E1F69 #531F69
triadic
#2E1F69 #692E1F #1F692E
tetradic
#2E1F69 #691F35 #5A691F #1F6953
square
#2E1F69 #691F35 #5A691F #1F6953
split-complementary
#2E1F69 #69531F #35691F
monochromatic
#0A0718 #19113A #2E1F69 #432D98 #593DC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1F69#FFFFFF#000000##FFFFFF
##2E1F691.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)
#002F6B
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#163241
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1f69;
/* rgb */ color: rgb(46, 31, 105);
/* oklch */ color: oklch(30.8% 0.122 286.0);
Tailwind
colors: {
  custom: {
    50: '#6d5c95',
    500: '#2e1f69',
    950: '#000000',
  },
}
SCSS
$custom: #2e1f69;
$custom-light: #6d5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1f69",
  "rgb": {
    "r": 46,
    "g": 31,
    "b": 105
  },
  "hsl": {
    "h": 252.162,
    "s": 54.412,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.12244,
    "h": 286
  },
  "luminance": 0.02581
}

Semantic roles & 50–950 ramp

primary
#2E1F69
secondary
#8C9D47
accent
#DE4AC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #2E1F69

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

Preview Lab → · Contrast checker → · Palette generator →

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