#2E124B#2E124B

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

Color values

HEX#2E124B
RGBrgb(46, 18, 75)
HSLhsl(269, 61%, 18%)
HSVhsv(269, 76%, 29%)
CMYKcmyk(38.7%, 76%, 0%, 70.6%)
CIE-LABlab(12.74, 27.00, -29.84)
CIE-LCHlch(12.74, 40.24, 312.15°)
OKLaboklab(25.97% 0.0538 -0.0849)
OKLCHoklch(25.97% 0.1 302.3)
XYZxyz(2.6127, 1.5214, 6.8113)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E124B #2F4B12
analogous
#12124B #2E124B #4A124B
triadic
#2E124B #4B2E12 #124B2E
tetradic
#2E124B #4B1212 #2F4B12 #124B4A
square
#2E124B #4B1212 #2F4B12 #124B4A
split-complementary
#2E124B #4B4A12 #124B12
monochromatic
#0F0619 #10061A #2E124B #4C1E7C #6B2AAE

Accessibility & contrast

On white

16.10
#2E124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E124B
16.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E124B#FFFFFF#000000##FFFFFF
##2E124B1.0016.101.3016.10
#FFFFFF16.101.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#281F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e124b;
/* rgb */ color: rgb(46, 18, 75);
/* oklch */ color: oklch(26.0% 0.100 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a527e',
    500: '#2e124b',
    950: '#000000',
  },
}
SCSS
$custom: #2e124b;
$custom-light: #6a527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e124b",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 269.474,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2597,
    "c": 0.10049,
    "h": 302.3
  },
  "luminance": 0.01521
}

Semantic roles & 50–950 ramp

primary
#2E124B
secondary
#5D8435
accent
#E44395
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E124B

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

Preview Lab → · Contrast checker → · Palette generator →

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