#2E2159#2E2159

#2E2159 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.097 H 289.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#2E2159
RGBrgb(46, 33, 89)
HSLhsl(254, 46%, 24%)
HSVhsv(254, 63%, 35%)
CMYKcmyk(48.3%, 62.9%, 0%, 65.1%)
CIE-LABlab(17.41, 21.90, -31.80)
CIE-LCHlch(17.41, 38.61, 304.56°)
OKLaboklab(29.72% 0.0329 -0.0907)
OKLCHoklch(29.72% 0.097 289.9)
XYZxyz(3.4732, 2.3897, 9.7275)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E2159 #4C5921
analogous
#213059 #2E2159 #4A2159
triadic
#2E2159 #592E21 #21592E
tetradic
#2E2159 #592130 #4C5921 #21594A
square
#2E2159 #592130 #4C5921 #21594A
split-complementary
#2E2159 #594A21 #305921
monochromatic
#0C0816 #17102C #2E2159 #453286 #5C42B2

Accessibility & contrast

On white

14.21
#2E2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2E2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E2159
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E2159#FFFFFF#000000##FFFFFF
##2E21591.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#012958
Tritanopia (blue-blind)
#212D39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e2159;
/* rgb */ color: rgb(46, 33, 89);
/* oklch */ color: oklch(29.7% 0.097 289.9);
Tailwind
colors: {
  custom: {
    50: '#6a5d88',
    500: '#2e2159',
    950: '#000000',
  },
}
SCSS
$custom: #2e2159;
$custom-light: #6a5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#2e2159",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 253.929,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2972,
    "c": 0.0965,
    "h": 289.9
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#2E2159
secondary
#7D8D49
accent
#D652B7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2E2159

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

Preview Lab → · Contrast checker → · Palette generator →

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