#2E0E57#2E0E57

#2E0E57 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.120 H 297.2°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#2E0E57
RGBrgb(46, 14, 87)
HSLhsl(266, 72%, 20%)
HSVhsv(266, 84%, 34%)
CMYKcmyk(47.1%, 83.9%, 0%, 65.9%)
CIE-LABlab(13.13, 32.53, -37.42)
CIE-LCHlch(13.13, 49.59, 311.00°)
OKLaboklab(26.59% 0.0551 -0.1072)
OKLCHoklch(26.59% 0.12 297.2)
XYZxyz(3.0036, 1.5830, 9.1623)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0E57 #37570E
analogous
#0E1357 #2E0E57 #520E57
triadic
#2E0E57 #572E0E #0E572E
tetradic
#2E0E57 #570E13 #37570E #0E5752
square
#2E0E57 #570E13 #37570E #0E5752
split-complementary
#2E0E57 #57520E #13570E
monochromatic
#0E041A #120622 #2E0E57 #4A168C #661FC0

Accessibility & contrast

On white

15.95
#2E0E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E0E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0E57
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0E57#FFFFFF#000000##FFFFFF
##2E0E571.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#232232
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e0e57;
/* rgb */ color: rgb(46, 14, 87);
/* oklch */ color: oklch(26.6% 0.120 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5187',
    500: '#2e0e57',
    950: '#000000',
  },
}
SCSS
$custom: #2e0e57;
$custom-light: #6c5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0e57",
  "rgb": {
    "r": 46,
    "g": 14,
    "b": 87
  },
  "hsl": {
    "h": 266.301,
    "s": 72.277,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26588,
    "c": 0.12049,
    "h": 297.2
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#2E0E57
secondary
#669130
accent
#EF399F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0E57

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

Preview Lab → · Contrast checker → · Palette generator →

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