#2E1748#2E1748

#2E1748 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.088 H 302.4°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1748
RGBrgb(46, 23, 72)
HSLhsl(268, 52%, 19%)
HSVhsv(268, 68%, 28%)
CMYKcmyk(36.1%, 68.1%, 0%, 71.8%)
CIE-LABlab(13.60, 23.12, -26.37)
CIE-LCHlch(13.60, 35.07, 311.23°)
OKLaboklab(26.51% 0.0474 -0.0747)
OKLCHoklch(26.51% 0.089 302.4)
XYZxyz(2.6025, 1.6615, 6.3132)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1748 #314817
analogous
#171848 #2E1748 #461748
triadic
#2E1748 #482E17 #17482E
tetradic
#2E1748 #481718 #314817 #174846
square
#2E1748 #481718 #314817 #174846
split-complementary
#2E1748 #484617 #184817
monochromatic
#0F0717 #10081A #2E1748 #4C2676 #6935A5

Accessibility & contrast

On white

15.76
#2E1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1748
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1748#FFFFFF#000000##FFFFFF
##2E17481.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224A
Deuteranopia (green-blind)
#092347
Tritanopia (blue-blind)
#29212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1748;
/* rgb */ color: rgb(46, 23, 72);
/* oklch */ color: oklch(26.5% 0.088 302.4);
Tailwind
colors: {
  custom: {
    50: '#69557b',
    500: '#2e1748',
    950: '#000000',
  },
}
SCSS
$custom: #2e1748;
$custom-light: #69557b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1748",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 268.163,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26509,
    "c": 0.0885,
    "h": 302.4
  },
  "luminance": 0.01662
}

Semantic roles & 50–950 ramp

primary
#2E1748
secondary
#5F7F3C
accent
#DB4D98
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1748

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

Preview Lab → · Contrast checker → · Palette generator →

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