#2E0842#2E0842

#2E0842 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.103 H 310.5°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#2E0842
RGBrgb(46, 8, 66)
HSLhsl(279, 78%, 15%)
HSVhsv(279, 88%, 26%)
CMYKcmyk(30.3%, 87.9%, 0%, 74.1%)
CIE-LABlab(10.17, 29.63, -27.72)
CIE-LCHlch(10.17, 40.58, 316.91°)
OKLaboklab(23.9% 0.0672 -0.0786)
OKLCHoklch(23.9% 0.103 310.5)
XYZxyz(2.1967, 1.1479, 5.2590)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0842 #1C4208
analogous
#110842 #2E0842 #420839
triadic
#2E0842 #422E08 #08422E
tetradic
#2E0842 #421108 #1C4208 #083942
square
#2E0842 #421108 #1C4208 #083942
split-complementary
#2E0842 #394208 #084211
monochromatic
#13031B #13031B #2E0842 #540F79 #7A15AF

Accessibility & contrast

On white

17.08
#2E0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0842
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0842#FFFFFF#000000##FFFFFF
##2E08421.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001C41
Tritanopia (blue-blind)
#2B1625
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2e0842;
/* rgb */ color: rgb(46, 8, 66);
/* oklch */ color: oklch(23.9% 0.103 310.5);
Tailwind
colors: {
  custom: {
    50: '#6a4c77',
    500: '#2e0842',
    950: '#000000',
  },
}
SCSS
$custom: #2e0842;
$custom-light: #6a4c77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0842",
  "rgb": {
    "r": 46,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 279.31,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23896,
    "c": 0.1034,
    "h": 310.5
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#2E0842
secondary
#458025
accent
#F53376
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0842

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

Preview Lab → · Contrast checker → · Palette generator →

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