#2E1345#2E1345

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

Color values

HEX#2E1345
RGBrgb(46, 19, 69)
HSLhsl(272, 57%, 17%)
HSVhsv(272, 72%, 27%)
CMYKcmyk(33.3%, 72.5%, 0%, 72.9%)
CIE-LABlab(12.46, 24.71, -26.13)
CIE-LCHlch(12.46, 35.96, 313.40°)
OKLaboklab(25.61% 0.0532 -0.074)
OKLCHoklch(25.61% 0.091 305.7)
XYZxyz(2.4335, 1.4763, 5.7858)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1345 #2A4513
analogous
#151345 #2E1345 #451343
triadic
#2E1345 #452E13 #13452E
tetradic
#2E1345 #451513 #2A4513 #134345
square
#2E1345 #451513 #2A4513 #134345
split-complementary
#2E1345 #434513 #134515
monochromatic
#100718 #100718 #2E1345 #4E2075 #6E2DA5

Accessibility & contrast

On white

16.21
#2E1345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E1345 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1345
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1345#FFFFFF#000000##FFFFFF
##2E13451.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002047
Deuteranopia (green-blind)
#072144
Tritanopia (blue-blind)
#2A1E2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1345;
/* rgb */ color: rgb(46, 19, 69);
/* oklch */ color: oklch(25.6% 0.091 305.7);
Tailwind
colors: {
  custom: {
    50: '#695279',
    500: '#2e1345',
    950: '#000000',
  },
}
SCSS
$custom: #2e1345;
$custom-light: #695279;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1345",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 69
  },
  "hsl": {
    "h": 272.4,
    "s": 56.818,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25606,
    "c": 0.09116,
    "h": 305.7
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2E1345
secondary
#577E36
accent
#E0488E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1345

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

Preview Lab → · Contrast checker → · Palette generator →

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