#2E0E54#2E0E54

#2E0E54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.3% C 0.117 H 298.6°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2E0E54
RGBrgb(46, 14, 84)
HSLhsl(267, 71%, 19%)
HSVhsv(267, 83%, 33%)
CMYKcmyk(45.2%, 83.3%, 0%, 67.1%)
CIE-LABlab(12.83, 31.68, -35.87)
CIE-LCHlch(12.83, 47.86, 311.45°)
OKLaboklab(26.29% 0.056 -0.1026)
OKLCHoklch(26.29% 0.117 298.6)
XYZxyz(2.8836, 1.5350, 8.5301)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0E54 #34540E
analogous
#0E1154 #2E0E54 #510E54
triadic
#2E0E54 #542E0E #0E542E
tetradic
#2E0E54 #540E11 #34540E #0E5451
square
#2E0E54 #540E11 #34540E #0E5451
split-complementary
#2E0E54 #54510E #11540E
monochromatic
#0E041A #110520 #2E0E54 #4B1788 #671FBD

Accessibility & contrast

On white

16.07
#2E0E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E0E54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0E54
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0E54#FFFFFF#000000##FFFFFF
##2E0E541.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#252130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e0e54;
/* rgb */ color: rgb(46, 14, 84);
/* oklch */ color: oklch(26.3% 0.117 298.6);
Tailwind
colors: {
  custom: {
    50: '#6b5085',
    500: '#2e0e54',
    950: '#000000',
  },
}
SCSS
$custom: #2e0e54;
$custom-light: #6b5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0e54",
  "rgb": {
    "r": 46,
    "g": 14,
    "b": 84
  },
  "hsl": {
    "h": 267.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26288,
    "c": 0.11691,
    "h": 298.6
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#2E0E54
secondary
#638E2F
accent
#EE3A9C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0E54

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

Preview Lab → · Contrast checker → · Palette generator →

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