#2E1767#2E1767

#2E1767 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.130 H 288.9°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2E1767
RGBrgb(46, 23, 103)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 78%, 40%)
CMYKcmyk(55.3%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.37, 32.65, -42.79)
CIE-LCHlch(16.37, 53.82, 307.35°)
OKLaboklab(29.36% 0.0421 -0.123)
OKLCHoklch(29.36% 0.13 288.9)
XYZxyz(3.8806, 2.1727, 13.0442)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1767 #506717
analogous
#172867 #2E1767 #561767
triadic
#2E1767 #672E17 #17672E
tetradic
#2E1767 #671728 #506717 #176756
square
#2E1767 #671728 #506717 #176756
split-complementary
#2E1767 #675617 #286717
monochromatic
#0B0619 #180C35 #2E1767 #442299 #5B2DCB

Accessibility & contrast

On white

14.64
#2E1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1767
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1767#FFFFFF#000000##FFFFFF
##2E17671.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#182D3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e1767;
/* rgb */ color: rgb(46, 23, 103);
/* oklch */ color: oklch(29.4% 0.130 288.9);
Tailwind
colors: {
  custom: {
    50: '#6e5793',
    500: '#2e1767',
    950: '#000000',
  },
}
SCSS
$custom: #2e1767;
$custom-light: #6e5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1767",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 257.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29356,
    "c": 0.12997,
    "h": 288.9
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#2E1767
secondary
#819D3D
accent
#E741B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1767

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

Preview Lab → · Contrast checker → · Palette generator →

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