#2E1149#2E1149

#2E1149 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.099 H 303.8°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2E1149
RGBrgb(46, 17, 73)
HSLhsl(271, 62%, 18%)
HSVhsv(271, 77%, 29%)
CMYKcmyk(37%, 76.7%, 0%, 71.4%)
CIE-LABlab(12.37, 27.00, -29.06)
CIE-LCHlch(12.37, 39.66, 312.90°)
OKLaboklab(25.65% 0.0554 -0.0826)
OKLCHoklch(25.65% 0.099 303.8)
XYZxyz(2.5295, 1.4628, 6.4511)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1149 #2C4911
analogous
#121149 #2E1149 #491148
triadic
#2E1149 #492E11 #11492E
tetradic
#2E1149 #491211 #2C4911 #114849
square
#2E1149 #491211 #2C4911 #114849
split-complementary
#2E1149 #484911 #114912
monochromatic
#100619 #100619 #2E1149 #4D1D7B #6D28AC

Accessibility & contrast

On white

16.25
#2E1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1149
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1149#FFFFFF#000000##FFFFFF
##2E11491.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#291E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1149;
/* rgb */ color: rgb(46, 17, 73);
/* oklch */ color: oklch(25.6% 0.099 303.8);
Tailwind
colors: {
  custom: {
    50: '#6a517c',
    500: '#2e1149',
    950: '#000000',
  },
}
SCSS
$custom: #2e1149;
$custom-light: #6a517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1149",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 271.071,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.09943,
    "h": 303.8
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#2E1149
secondary
#598233
accent
#E54391
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1149

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

Preview Lab → · Contrast checker → · Palette generator →

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