#2E183A#2E183A

#2E183A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.067 H 312.4°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2E183A
RGBrgb(46, 24, 58)
HSLhsl(279, 41%, 16%)
HSVhsv(279, 59%, 23%)
CMYKcmyk(20.7%, 58.6%, 0%, 77.3%)
CIE-LABlab(12.86, 18.47, -17.73)
CIE-LCHlch(12.86, 25.60, 316.18°)
OKLaboklab(25.65% 0.0452 -0.0495)
OKLCHoklch(25.65% 0.067 312.4)
XYZxyz(2.2169, 1.5396, 4.1826)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E183A #243A18
analogous
#1D183A #2E183A #3A1835
triadic
#2E183A #3A2E18 #183A2E
tetradic
#2E183A #3A1D18 #243A18 #18353A
square
#2E183A #3A1D18 #243A18 #18353A
split-complementary
#2E183A #353A18 #183A1D
monochromatic
#110916 #110916 #2E183A #502A65 #733C91

Accessibility & contrast

On white

16.06
#2E183A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E183A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E183A
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E183A#FFFFFF#000000##FFFFFF
##2E183A1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10203B
Deuteranopia (green-blind)
#162239
Tritanopia (blue-blind)
#2D1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e183a;
/* rgb */ color: rgb(46, 24, 58);
/* oklch */ color: oklch(25.6% 0.067 312.4);
Tailwind
colors: {
  custom: {
    50: '#685570',
    500: '#2e183a',
    950: '#000000',
  },
}
SCSS
$custom: #2e183a;
$custom-light: #685570;
$custom-dark: #000000;
JSON
{
  "hex": "#2e183a",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 58
  },
  "hsl": {
    "h": 278.824,
    "s": 41.463,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25646,
    "c": 0.06701,
    "h": 312.4
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#2E183A
secondary
#4F703E
accent
#D15782
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E183A

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

Preview Lab → · Contrast checker → · Palette generator →

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