#2E124A#2E124A

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

Color values

HEX#2E124A
RGBrgb(46, 18, 74)
HSLhsl(270, 61%, 18%)
HSVhsv(270, 76%, 29%)
CMYKcmyk(37.8%, 75.7%, 0%, 71%)
CIE-LABlab(12.66, 26.72, -29.28)
CIE-LCHlch(12.66, 39.64, 312.38°)
OKLaboklab(25.88% 0.0539 -0.0833)
OKLCHoklch(25.88% 0.099 302.9)
XYZxyz(2.5788, 1.5079, 6.6324)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E124A #2E4A12
analogous
#12124A #2E124A #4A124A
triadic
#2E124A #4A2E12 #124A2E
tetradic
#2E124A #4A1212 #2E4A12 #124A4A
square
#2E124A #4A1212 #2E4A12 #124A4A
split-complementary
#2E124A #4A4A12 #124A12
monochromatic
#0F0619 #0F0619 #2E124A #4D1E7B #6B2AAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E124A#FFFFFF#000000##FFFFFF
##2E124A1.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)
#00204C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#281F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e124a;
/* rgb */ color: rgb(46, 18, 74);
/* oklch */ color: oklch(25.9% 0.099 302.9);
Tailwind
colors: {
  custom: {
    50: '#6a527d',
    500: '#2e124a',
    950: '#000000',
  },
}
SCSS
$custom: #2e124a;
$custom-light: #6a527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e124a",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 270,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25881,
    "c": 0.09922,
    "h": 302.9
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#2E124A
secondary
#5C8335
accent
#E44494
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E124A

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

Preview Lab → · Contrast checker → · Palette generator →

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