#2E0942#2E0942

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

Color values

HEX#2E0942
RGBrgb(46, 9, 66)
HSLhsl(279, 76%, 15%)
HSVhsv(279, 86%, 26%)
CMYKcmyk(30.3%, 86.4%, 0%, 74.1%)
CIE-LABlab(10.33, 29.16, -27.45)
CIE-LCHlch(10.33, 40.05, 316.73°)
OKLaboklab(24.01% 0.0661 -0.0778)
OKLCHoklch(24.01% 0.102 310.3)
XYZxyz(2.2076, 1.1696, 5.2627)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0942 #1D4209
analogous
#110942 #2E0942 #42093A
triadic
#2E0942 #422E09 #09422E
tetradic
#2E0942 #421109 #1D4209 #093A42
square
#2E0942 #421109 #1D4209 #093A42
split-complementary
#2E0942 #3A4209 #094211
monochromatic
#13041B #13041B #2E0942 #541078 #7918AE

Accessibility & contrast

On white

17.02
#2E0942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0942
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0942#FFFFFF#000000##FFFFFF
##2E09421.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0942;
/* rgb */ color: rgb(46, 9, 66);
/* oklch */ color: oklch(24.0% 0.102 310.3);
Tailwind
colors: {
  custom: {
    50: '#6a4d77',
    500: '#2e0942',
    950: '#000000',
  },
}
SCSS
$custom: #2e0942;
$custom-light: #6a4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0942",
  "rgb": {
    "r": 46,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 278.947,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24011,
    "c": 0.10209,
    "h": 310.3
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#2E0942
secondary
#468027
accent
#F33578
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #2E0942

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

Preview Lab → · Contrast checker → · Palette generator →

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