#2E0D52#2E0D52

#2E0D52 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.116 H 299.8°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2E0D52
RGBrgb(46, 13, 82)
HSLhsl(269, 73%, 19%)
HSVhsv(269, 84%, 32%)
CMYKcmyk(43.9%, 84.1%, 0%, 67.8%)
CIE-LABlab(12.47, 31.60, -35.10)
CIE-LCHlch(12.47, 47.23, 311.99°)
OKLaboklab(25.97% 0.0576 -0.1003)
OKLCHoklch(25.97% 0.116 299.8)
XYZxyz(2.7932, 1.4779, 8.1191)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E0D52 #31520D
analogous
#0D0E52 #2E0D52 #500D52
triadic
#2E0D52 #522E0D #0D522E
tetradic
#2E0D52 #520D0E #31520D #0D5250
square
#2E0D52 #520D0E #31520D #0D5250
split-complementary
#2E0D52 #52500D #0E520D
monochromatic
#0F041A #10051D #2E0D52 #4C1587 #691EBC

Accessibility & contrast

On white

16.21
#2E0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E0D52
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E0D52#FFFFFF#000000##FFFFFF
##2E0D521.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#251F2F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e0d52;
/* rgb */ color: rgb(46, 13, 82);
/* oklch */ color: oklch(26.0% 0.116 299.8);
Tailwind
colors: {
  custom: {
    50: '#6b5083',
    500: '#2e0d52',
    950: '#000000',
  },
}
SCSS
$custom: #2e0d52;
$custom-light: #6b5083;
$custom-dark: #000000;
JSON
{
  "hex": "#2e0d52",
  "rgb": {
    "r": 46,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 268.696,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25974,
    "c": 0.11569,
    "h": 299.8
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#2E0D52
secondary
#5F8D2E
accent
#EF3898
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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