#2E1668#2E1668

#2E1668 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.132 H 288.8°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2E1668
RGBrgb(46, 22, 104)
HSLhsl(258, 65%, 25%)
HSVhsv(258, 79%, 41%)
CMYKcmyk(55.8%, 78.8%, 0%, 59.2%)
CIE-LABlab(16.28, 33.51, -43.60)
CIE-LCHlch(16.28, 54.99, 307.55°)
OKLaboklab(29.32% 0.0427 -0.1253)
OKLCHoklch(29.32% 0.132 288.8)
XYZxyz(3.9116, 2.1540, 13.3037)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1668 #506816
analogous
#162768 #2E1668 #571668
triadic
#2E1668 #682E16 #16682E
tetradic
#2E1668 #681627 #506816 #166857
square
#2E1668 #681627 #506816 #166857
split-complementary
#2E1668 #685716 #276816
monochromatic
#0B0519 #180B35 #2E1668 #44219B #5B2BCD

Accessibility & contrast

On white

14.68
#2E1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1668
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1668#FFFFFF#000000##FFFFFF
##2E16681.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#182D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e1668;
/* rgb */ color: rgb(46, 22, 104);
/* oklch */ color: oklch(29.3% 0.132 288.8);
Tailwind
colors: {
  custom: {
    50: '#6e5694',
    500: '#2e1668',
    950: '#000000',
  },
}
SCSS
$custom: #2e1668;
$custom-light: #6e5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1668",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 257.561,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2932,
    "c": 0.13241,
    "h": 288.8
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2E1668
secondary
#819F3B
accent
#E840B7
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E1668

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

Preview Lab → · Contrast checker → · Palette generator →

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