#2E1145#2E1145

#2E1145 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.094 H 306.4°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2E1145
RGBrgb(46, 17, 69)
HSLhsl(273, 60%, 17%)
HSVhsv(273, 75%, 27%)
CMYKcmyk(33.3%, 75.4%, 0%, 72.9%)
CIE-LABlab(12.03, 25.88, -26.81)
CIE-LCHlch(12.03, 37.26, 313.98°)
OKLaboklab(25.3% 0.0559 -0.076)
OKLCHoklch(25.3% 0.094 306.4)
XYZxyz(2.4011, 1.4114, 5.7750)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1145 #284511
analogous
#141145 #2E1145 #451142
triadic
#2E1145 #452E11 #11452E
tetradic
#2E1145 #451411 #284511 #114245
square
#2E1145 #451411 #284511 #114245
split-complementary
#2E1145 #424511 #114514
monochromatic
#100619 #100619 #2E1145 #4F1D76 #6F29A7

Accessibility & contrast

On white

16.38
#2E1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1145
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1145#FFFFFF#000000##FFFFFF
##2E11451.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#042044
Tritanopia (blue-blind)
#2A1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1145;
/* rgb */ color: rgb(46, 17, 69);
/* oklch */ color: oklch(25.3% 0.094 306.4);
Tailwind
colors: {
  custom: {
    50: '#695179',
    500: '#2e1145',
    950: '#000000',
  },
}
SCSS
$custom: #2e1145;
$custom-light: #695179;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1145",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 273.462,
    "s": 60.465,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25302,
    "c": 0.09436,
    "h": 306.4
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#2E1145
secondary
#557F33
accent
#E4448B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1145

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

Preview Lab → · Contrast checker → · Palette generator →

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