#2E1452#2E1452

#2E1452 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.107 H 298.0°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2E1452
RGBrgb(46, 20, 82)
HSLhsl(265, 61%, 20%)
HSVhsv(265, 76%, 32%)
CMYKcmyk(43.9%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.77, 27.91, -32.98)
CIE-LCHlch(13.77, 43.20, 310.25°)
OKLaboklab(26.9% 0.0501 -0.0941)
OKLCHoklch(26.9% 0.107 298)
XYZxyz(2.8995, 1.6903, 8.1545)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1452 #385214
analogous
#141952 #2E1452 #4D1452
triadic
#2E1452 #522E14 #14522E
tetradic
#2E1452 #521419 #385214 #14524D
square
#2E1452 #521419 #385214 #14524D
split-complementary
#2E1452 #524D14 #195214
monochromatic
#0E0619 #120821 #2E1452 #4A2083 #652CB4

Accessibility & contrast

On white

15.70
#2E1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1452
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1452#FFFFFF#000000##FFFFFF
##2E14521.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#252331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1452;
/* rgb */ color: rgb(46, 20, 82);
/* oklch */ color: oklch(26.9% 0.107 298.0);
Tailwind
colors: {
  custom: {
    50: '#6b5483',
    500: '#2e1452',
    950: '#000000',
  },
}
SCSS
$custom: #2e1452;
$custom-light: #6b5483;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1452",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 265.161,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26896,
    "c": 0.10664,
    "h": 298
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#2E1452
secondary
#688A38
accent
#E444A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1452

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

Preview Lab → · Contrast checker → · Palette generator →

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