#2E0D54#2E0D54

#2E0D54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.118 H 298.8°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2E0D54
RGBrgb(46, 13, 84)
HSLhsl(268, 73%, 19%)
HSVhsv(268, 85%, 33%)
CMYKcmyk(45.2%, 84.5%, 0%, 67.1%)
CIE-LABlab(12.66, 32.16, -36.14)
CIE-LCHlch(12.66, 48.38, 311.66°)
OKLaboklab(26.17% 0.057 -0.1034)
OKLCHoklch(26.17% 0.118 298.8)
XYZxyz(2.8705, 1.5087, 8.5258)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0D54 #33540D
analogous
#0D1054 #2E0D54 #520D54
triadic
#2E0D54 #542E0D #0D542E
tetradic
#2E0D54 #540D10 #33540D #0D5452
square
#2E0D54 #540D10 #33540D #0D5452
split-complementary
#2E0D54 #54520D #10540D
monochromatic
#0F041A #11051F #2E0D54 #4B1589 #681DBE

Accessibility & contrast

On white

16.13
#2E0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E0D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E0D54
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0D54#FFFFFF#000000##FFFFFF
##2E0D541.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e0d54;
/* rgb */ color: rgb(46, 13, 84);
/* oklch */ color: oklch(26.2% 0.118 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5085',
    500: '#2e0d54',
    950: '#000000',
  },
}
SCSS
$custom: #2e0d54;
$custom-light: #6c5085;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0d54",
  "rgb": {
    "r": 46,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 267.887,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26173,
    "c": 0.11805,
    "h": 298.8
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#2E0D54
secondary
#628F2E
accent
#F0389A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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