#2E1843#2E1843

#2E1843 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.080 H 305.2°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1843
RGBrgb(46, 24, 67)
HSLhsl(271, 47%, 18%)
HSVhsv(271, 64%, 26%)
CMYKcmyk(31.3%, 64.2%, 0%, 73.7%)
CIE-LABlab(13.47, 21.01, -23.10)
CIE-LCHlch(13.47, 31.23, 312.28°)
OKLaboklab(26.29% 0.0459 -0.0652)
OKLCHoklch(26.29% 0.08 305.2)
XYZxyz(2.4662, 1.6394, 5.4956)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1843 #2D4318
analogous
#181843 #2E1843 #431842
triadic
#2E1843 #432E18 #18432E
tetradic
#2E1843 #431818 #2D4318 #184243
square
#2E1843 #431818 #2D4318 #184243
split-complementary
#2E1843 #424318 #184318
monochromatic
#0F0817 #0F0817 #2E1843 #4D2870 #6C389D

Accessibility & contrast

On white

15.82
#2E1843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1843
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1843#FFFFFF#000000##FFFFFF
##2E18431.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072244
Deuteranopia (green-blind)
#102342
Tritanopia (blue-blind)
#2A202A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1843;
/* rgb */ color: rgb(46, 24, 67);
/* oklch */ color: oklch(26.3% 0.080 305.2);
Tailwind
colors: {
  custom: {
    50: '#685677',
    500: '#2e1843',
    950: '#000000',
  },
}
SCSS
$custom: #2e1843;
$custom-light: #685677;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1843",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 67
  },
  "hsl": {
    "h": 270.698,
    "s": 47.253,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26293,
    "c": 0.07971,
    "h": 305.2
  },
  "luminance": 0.01639
}

Semantic roles & 50–950 ramp

primary
#2E1843
secondary
#5B7A3D
accent
#D75192
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1843

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

Preview Lab → · Contrast checker → · Palette generator →

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