#2E0843#2E0843

#2E0843 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.104 H 309.8°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#2E0843
RGBrgb(46, 8, 67)
HSLhsl(279, 79%, 15%)
HSVhsv(279, 88%, 26%)
CMYKcmyk(31.3%, 88.1%, 0%, 73.7%)
CIE-LABlab(10.26, 29.89, -28.28)
CIE-LCHlch(10.26, 41.15, 316.58°)
OKLaboklab(23.99% 0.0669 -0.0803)
OKLCHoklch(23.99% 0.104 309.8)
XYZxyz(2.2265, 1.1598, 5.4157)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0843 #1D4308
analogous
#100843 #2E0843 #43083B
triadic
#2E0843 #432E08 #08432E
tetradic
#2E0843 #431008 #1D4308 #083B43
square
#2E0843 #431008 #1D4308 #083B43
split-complementary
#2E0843 #3B4308 #084310
monochromatic
#13031B #13031B #2E0843 #540F7A #7915B0

Accessibility & contrast

On white

17.05
#2E0843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2E0843 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0843
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0843#FFFFFF#000000##FFFFFF
##2E08431.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001C42
Tritanopia (blue-blind)
#2B1725
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2e0843;
/* rgb */ color: rgb(46, 8, 67);
/* oklch */ color: oklch(24.0% 0.104 309.8);
Tailwind
colors: {
  custom: {
    50: '#6a4d78',
    500: '#2e0843',
    950: '#000000',
  },
}
SCSS
$custom: #2e0843;
$custom-light: #6a4d78;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0843",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 67
  },
  "hsl": {
    "h": 278.644,
    "s": 78.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23987,
    "c": 0.10449,
    "h": 309.8
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#2E0843
secondary
#468125
accent
#F53378
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070109
muted
#7A777B

Preview Lab

Preview with #2E0843

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

Preview Lab → · Contrast checker → · Palette generator →

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