#2E1745#2E1745

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

Color values

HEX#2E1745
RGBrgb(46, 23, 69)
HSLhsl(270, 50%, 18%)
HSVhsv(270, 67%, 27%)
CMYKcmyk(33.3%, 66.7%, 0%, 72.9%)
CIE-LABlab(13.37, 22.24, -24.66)
CIE-LCHlch(13.37, 33.20, 312.04°)
OKLaboklab(26.27% 0.0475 -0.0697)
OKLCHoklch(26.27% 0.084 304.2)
XYZxyz(2.5070, 1.6233, 5.8103)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1745 #2E4517
analogous
#171745 #2E1745 #451745
triadic
#2E1745 #452E17 #17452E
tetradic
#2E1745 #451717 #2E4517 #174545
square
#2E1745 #451717 #2E4517 #174545
split-complementary
#2E1745 #454517 #174517
monochromatic
#0F0817 #0F0817 #2E1745 #4D2673 #6B36A1

Accessibility & contrast

On white

15.85
#2E1745 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E1745 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1745
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1745#FFFFFF#000000##FFFFFF
##2E17451.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032246
Deuteranopia (green-blind)
#0C2244
Tritanopia (blue-blind)
#2A202B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1745;
/* rgb */ color: rgb(46, 23, 69);
/* oklch */ color: oklch(26.3% 0.084 304.2);
Tailwind
colors: {
  custom: {
    50: '#695579',
    500: '#2e1745',
    950: '#000000',
  },
}
SCSS
$custom: #2e1745;
$custom-light: #695579;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1745",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 69
  },
  "hsl": {
    "h": 270,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2627,
    "c": 0.08433,
    "h": 304.2
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2E1745
secondary
#5C7C3C
accent
#DA4E94
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1745

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

Preview Lab → · Contrast checker → · Palette generator →

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