#2E1048#2E1048

#2E1048 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.100 H 304.7°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1048
RGBrgb(46, 16, 72)
HSLhsl(272, 64%, 17%)
HSVhsv(272, 78%, 28%)
CMYKcmyk(36.1%, 77.8%, 0%, 71.8%)
CIE-LABlab(12.09, 27.27, -28.82)
CIE-LCHlch(12.09, 39.68, 313.42°)
OKLaboklab(25.42% 0.0568 -0.0819)
OKLCHoklch(25.42% 0.1 304.7)
XYZxyz(2.4814, 1.4193, 6.2729)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1048 #2A4810
analogous
#121048 #2E1048 #481046
triadic
#2E1048 #482E10 #10482E
tetradic
#2E1048 #481210 #2A4810 #104648
square
#2E1048 #481210 #2A4810 #104648
split-complementary
#2E1048 #464810 #104812
monochromatic
#100619 #100619 #2E1048 #4E1B7A #6E26AC

Accessibility & contrast

On white

16.36
#2E1048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1048
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1048#FFFFFF#000000##FFFFFF
##2E10481.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1048;
/* rgb */ color: rgb(46, 16, 72);
/* oklch */ color: oklch(25.4% 0.100 304.7);
Tailwind
colors: {
  custom: {
    50: '#6a517b',
    500: '#2e1048',
    950: '#000000',
  },
}
SCSS
$custom: #2e1048;
$custom-light: #6a517b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1048",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 72
  },
  "hsl": {
    "h": 272.143,
    "s": 63.636,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25419,
    "c": 0.09965,
    "h": 304.7
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#2E1048
secondary
#578232
accent
#E7418E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1048

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

Preview Lab → · Contrast checker → · Palette generator →

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