#2E184E#2E184E

#2E184E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.095 H 298.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2E184E
RGBrgb(46, 24, 78)
HSLhsl(264, 53%, 20%)
HSVhsv(264, 69%, 31%)
CMYKcmyk(41%, 69.2%, 0%, 69.4%)
CIE-LABlab(14.31, 24.29, -29.36)
CIE-LCHlch(14.31, 38.11, 309.59°)
OKLaboklab(27.18% 0.0456 -0.0835)
OKLCHoklch(27.18% 0.095 298.6)
XYZxyz(2.8281, 1.7841, 7.4016)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E184E #384E18
analogous
#181D4E #2E184E #49184E
triadic
#2E184E #4E2E18 #184E2E
tetradic
#2E184E #4E181D #384E18 #184E49
square
#2E184E #4E181D #384E18 #184E49
split-complementary
#2E184E #4E4918 #1D4E18
monochromatic
#0E0717 #120A1F #2E184E #4A267D #6535AC

Accessibility & contrast

On white

15.48
#2E184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E184E
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E184E#FFFFFF#000000##FFFFFF
##2E184E1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#02244D
Tritanopia (blue-blind)
#272430
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e184e;
/* rgb */ color: rgb(46, 24, 78);
/* oklch */ color: oklch(27.2% 0.095 298.6);
Tailwind
colors: {
  custom: {
    50: '#6a5680',
    500: '#2e184e',
    950: '#000000',
  },
}
SCSS
$custom: #2e184e;
$custom-light: #6a5680;
$custom-dark: #000000;
JSON
{
  "hex": "#2e184e",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 264.444,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.27177,
    "c": 0.09517,
    "h": 298.6
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#2E184E
secondary
#68853D
accent
#DC4BA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E184E

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

Preview Lab → · Contrast checker → · Palette generator →

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