#2E1769#2E1769

#2E1769 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 288.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2E1769
RGBrgb(46, 23, 105)
HSLhsl(257, 64%, 25%)
HSVhsv(257, 78%, 41%)
CMYKcmyk(56.2%, 78.1%, 0%, 58.8%)
CIE-LABlab(16.57, 33.27, -43.77)
CIE-LCHlch(16.57, 54.98, 307.24°)
OKLaboklab(29.56% 0.0416 -0.1258)
OKLCHoklch(29.56% 0.133 288.3)
XYZxyz(3.9822, 2.2134, 13.5793)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1769 #526917
analogous
#172969 #2E1769 #571769
triadic
#2E1769 #692E17 #17692E
tetradic
#2E1769 #691729 #526917 #176957
square
#2E1769 #691729 #526917 #176957
split-complementary
#2E1769 #695717 #296917
monochromatic
#0B0519 #180C37 #2E1769 #44229B #5A2DCD

Accessibility & contrast

On white

14.56
#2E1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E1769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1769
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1769#FFFFFF#000000##FFFFFF
##2E17691.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6B
Deuteranopia (green-blind)
#002767
Tritanopia (blue-blind)
#172D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1769;
/* rgb */ color: rgb(46, 23, 105);
/* oklch */ color: oklch(29.6% 0.133 288.3);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2e1769',
    950: '#000000',
  },
}
SCSS
$custom: #2e1769;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1769",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 256.829,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29558,
    "c": 0.13254,
    "h": 288.3
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2E1769
secondary
#849F3D
accent
#E741B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1769

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

Preview Lab → · Contrast checker → · Palette generator →

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