#2E1252#2E1252

#2E1252 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.109 H 298.6°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2E1252
RGBrgb(46, 18, 82)
HSLhsl(266, 64%, 20%)
HSVhsv(266, 78%, 32%)
CMYKcmyk(43.9%, 78%, 0%, 67.8%)
CIE-LABlab(13.37, 29.04, -33.63)
CIE-LCHlch(13.37, 44.43, 310.81°)
OKLaboklab(26.61% 0.0524 -0.0961)
OKLCHoklch(26.61% 0.109 298.6)
XYZxyz(2.8656, 1.6226, 8.1432)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1252 #365212
analogous
#121652 #2E1252 #4E1252
triadic
#2E1252 #522E12 #12522E
tetradic
#2E1252 #521216 #365212 #12524E
square
#2E1252 #521216 #365212 #12524E
split-complementary
#2E1252 #524E12 #165212
monochromatic
#0E0619 #120720 #2E1252 #4A1D84 #6628B6

Accessibility & contrast

On white

15.85
#2E1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1252
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1252#FFFFFF#000000##FFFFFF
##2E12521.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#252230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1252;
/* rgb */ color: rgb(46, 18, 82);
/* oklch */ color: oklch(26.6% 0.109 298.6);
Tailwind
colors: {
  custom: {
    50: '#6b5383',
    500: '#2e1252',
    950: '#000000',
  },
}
SCSS
$custom: #2e1252;
$custom-light: #6b5383;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1252",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 266.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26609,
    "c": 0.10942,
    "h": 298.6
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2E1252
secondary
#658B35
accent
#E7419E
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1252

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

Preview Lab → · Contrast checker → · Palette generator →

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