#2E1148#2E1148

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

Color values

HEX#2E1148
RGBrgb(46, 17, 72)
HSLhsl(272, 62%, 17%)
HSVhsv(272, 76%, 28%)
CMYKcmyk(36.1%, 76.4%, 0%, 71.8%)
CIE-LABlab(12.28, 26.72, -28.50)
CIE-LCHlch(12.28, 39.06, 313.15°)
OKLaboklab(25.56% 0.0555 -0.081)
OKLCHoklch(25.56% 0.098 304.4)
XYZxyz(2.4966, 1.4496, 6.2779)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1148 #2B4811
analogous
#121148 #2E1148 #481147
triadic
#2E1148 #482E11 #11482E
tetradic
#2E1148 #481211 #2B4811 #114748
square
#2E1148 #481211 #2B4811 #114748
split-complementary
#2E1148 #474811 #114812
monochromatic
#100619 #100619 #2E1148 #4E1D7A #6D28AB

Accessibility & contrast

On white

16.28
#2E1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1148
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1148#FFFFFF#000000##FFFFFF
##2E11481.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#291E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1148;
/* rgb */ color: rgb(46, 17, 72);
/* oklch */ color: oklch(25.6% 0.098 304.4);
Tailwind
colors: {
  custom: {
    50: '#6a517b',
    500: '#2e1148',
    950: '#000000',
  },
}
SCSS
$custom: #2e1148;
$custom-light: #6a517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1148",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 271.636,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.2556,
    "c": 0.09817,
    "h": 304.4
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#2E1148
secondary
#588233
accent
#E5438F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1148

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

Preview Lab → · Contrast checker → · Palette generator →

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