#2E1343#2E1343

#2E1343 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.089 H 307.1°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#2E1343
RGBrgb(46, 19, 67)
HSLhsl(274, 56%, 17%)
HSVhsv(274, 72%, 26%)
CMYKcmyk(31.3%, 71.6%, 0%, 73.7%)
CIE-LABlab(12.30, 24.15, -24.98)
CIE-LCHlch(12.30, 34.74, 314.03°)
OKLaboklab(25.44% 0.0534 -0.0706)
OKLCHoklch(25.44% 0.089 307.1)
XYZxyz(2.3725, 1.4519, 5.4644)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1343 #284313
analogous
#161343 #2E1343 #431340
triadic
#2E1343 #432E13 #13432E
tetradic
#2E1343 #431613 #284313 #134043
square
#2E1343 #431613 #284313 #134043
split-complementary
#2E1343 #404313 #134316
monochromatic
#100718 #100718 #2E1343 #4F2173 #6F2EA2

Accessibility & contrast

On white

16.27
#2E1343 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1343 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1343
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1343#FFFFFF#000000##FFFFFF
##2E13431.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#092042
Tritanopia (blue-blind)
#2B1D28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1343;
/* rgb */ color: rgb(46, 19, 67);
/* oklch */ color: oklch(25.4% 0.089 307.1);
Tailwind
colors: {
  custom: {
    50: '#695277',
    500: '#2e1343',
    950: '#000000',
  },
}
SCSS
$custom: #2e1343;
$custom-light: #695277;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1343",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 67
  },
  "hsl": {
    "h": 273.75,
    "s": 55.814,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25442,
    "c": 0.08854,
    "h": 307.1
  },
  "luminance": 0.01452
}

Semantic roles & 50–950 ramp

primary
#2E1343
secondary
#557C36
accent
#DF498A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1343

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

Preview Lab → · Contrast checker → · Palette generator →

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