#2E0E4C#2E0E4C

#2E0E4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.107 H 302.9°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2E0E4C
RGBrgb(46, 14, 76)
HSLhsl(271, 69%, 18%)
HSVhsv(271, 82%, 30%)
CMYKcmyk(39.5%, 81.6%, 0%, 70.2%)
CIE-LABlab(12.07, 29.44, -31.62)
CIE-LCHlch(12.07, 43.20, 312.95°)
OKLaboklab(25.52% 0.0582 -0.0901)
OKLCHoklch(25.52% 0.107 302.9)
XYZxyz(2.5880, 1.4167, 6.9732)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0E4C #2C4C0E
analogous
#0F0E4C #2E0E4C #4C0E4B
triadic
#2E0E4C #4C2E0E #0E4C2E
tetradic
#2E0E4C #4C0F0E #2C4C0E #0E4B4C
square
#2E0E4C #4C0F0E #2C4C0E #0E4B4C
split-complementary
#2E0E4C #4B4C0E #0E4C0F
monochromatic
#10051A #10051A #2E0E4C #4D1880 #6D21B3

Accessibility & contrast

On white

16.36
#2E0E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E0E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0E4C
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0E4C#FFFFFF#000000##FFFFFF
##2E0E4C1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#281D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0e4c;
/* rgb */ color: rgb(46, 14, 76);
/* oklch */ color: oklch(25.5% 0.107 302.9);
Tailwind
colors: {
  custom: {
    50: '#6a507f',
    500: '#2e0e4c',
    950: '#000000',
  },
}
SCSS
$custom: #2e0e4c;
$custom-light: #6a507f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0e4c",
  "rgb": {
    "r": 46,
    "g": 14,
    "b": 76
  },
  "hsl": {
    "h": 270.968,
    "s": 68.889,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25518,
    "c": 0.1073,
    "h": 302.9
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#2E0E4C
secondary
#59872F
accent
#EC3C91
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E0E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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