#2E1143#2E1143

#2E1143 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.092 H 307.7°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#2E1143
RGBrgb(46, 17, 67)
HSLhsl(275, 60%, 16%)
HSVhsv(275, 75%, 26%)
CMYKcmyk(31.3%, 74.6%, 0%, 73.7%)
CIE-LABlab(11.87, 25.32, -25.67)
CIE-LCHlch(11.87, 36.06, 314.61°)
OKLaboklab(25.13% 0.0562 -0.0727)
OKLCHoklch(25.13% 0.092 307.7)
XYZxyz(2.3401, 1.3870, 5.4535)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1143 #264311
analogous
#151143 #2E1143 #43113F
triadic
#2E1143 #432E11 #11432E
tetradic
#2E1143 #431511 #264311 #113F43
square
#2E1143 #431511 #264311 #113F43
split-complementary
#2E1143 #3F4311 #114315
monochromatic
#110618 #110618 #2E1143 #501D74 #712AA5

Accessibility & contrast

On white

16.44
#2E1143 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1143 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1143
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1143#FFFFFF#000000##FFFFFF
##2E11431.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E45
Deuteranopia (green-blind)
#072042
Tritanopia (blue-blind)
#2B1C28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1143;
/* rgb */ color: rgb(46, 17, 67);
/* oklch */ color: oklch(25.1% 0.092 307.7);
Tailwind
colors: {
  custom: {
    50: '#695177',
    500: '#2e1143',
    950: '#000000',
  },
}
SCSS
$custom: #2e1143;
$custom-light: #695177;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1143",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 67
  },
  "hsl": {
    "h": 274.8,
    "s": 59.524,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25133,
    "c": 0.09183,
    "h": 307.7
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#2E1143
secondary
#527D33
accent
#E34587
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1143

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

Preview Lab → · Contrast checker → · Palette generator →

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