#2E1249#2E1249

#2E1249 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.098 H 303.5°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2E1249
RGBrgb(46, 18, 73)
HSLhsl(271, 60%, 18%)
HSVhsv(271, 75%, 29%)
CMYKcmyk(37%, 75.3%, 0%, 71.4%)
CIE-LABlab(12.57, 26.43, -28.73)
CIE-LCHlch(12.57, 39.04, 312.62°)
OKLaboklab(25.79% 0.0541 -0.0816)
OKLCHoklch(25.79% 0.098 303.5)
XYZxyz(2.5453, 1.4945, 6.4564)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1249 #2D4912
analogous
#121249 #2E1249 #491249
triadic
#2E1249 #492E12 #12492E
tetradic
#2E1249 #491212 #2D4912 #124949
square
#2E1249 #491212 #2D4912 #124949
split-complementary
#2E1249 #494912 #124912
monochromatic
#0F0619 #0F0619 #2E1249 #4D1E7A #6C2AAB

Accessibility & contrast

On white

16.17
#2E1249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1249
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1249#FFFFFF#000000##FFFFFF
##2E12491.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#002148
Tritanopia (blue-blind)
#291E2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1249;
/* rgb */ color: rgb(46, 18, 73);
/* oklch */ color: oklch(25.8% 0.098 303.5);
Tailwind
colors: {
  custom: {
    50: '#6a527c',
    500: '#2e1249',
    950: '#000000',
  },
}
SCSS
$custom: #2e1249;
$custom-light: #6a527c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1249",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 270.545,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25794,
    "c": 0.09793,
    "h": 303.5
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#2E1249
secondary
#5B8235
accent
#E44492
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1249

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

Preview Lab → · Contrast checker → · Palette generator →

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