#2E173A#2E173A

#2E173A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.069 H 312.8°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2E173A
RGBrgb(46, 23, 58)
HSLhsl(279, 43%, 16%)
HSVhsv(279, 60%, 23%)
CMYKcmyk(20.7%, 60.3%, 0%, 77.3%)
CIE-LABlab(12.60, 19.13, -18.13)
CIE-LCHlch(12.60, 26.36, 316.54°)
OKLaboklab(25.46% 0.0469 -0.0506)
OKLCHoklch(25.46% 0.069 312.8)
XYZxyz(2.1967, 1.4992, 4.1758)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E173A #233A17
analogous
#1C173A #2E173A #3A1734
triadic
#2E173A #3A2E17 #173A2E
tetradic
#2E173A #3A1C17 #233A17 #17343A
square
#2E173A #3A1C17 #233A17 #17343A
split-complementary
#2E173A #343A17 #173A1C
monochromatic
#110916 #110916 #2E173A #512866 #743A92

Accessibility & contrast

On white

16.16
#2E173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E173A
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E173A#FFFFFF#000000##FFFFFF
##2E173A1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1F3B
Deuteranopia (green-blind)
#162139
Tritanopia (blue-blind)
#2D1D25
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e173a;
/* rgb */ color: rgb(46, 23, 58);
/* oklch */ color: oklch(25.5% 0.069 312.8);
Tailwind
colors: {
  custom: {
    50: '#685570',
    500: '#2e173a',
    950: '#000000',
  },
}
SCSS
$custom: #2e173a;
$custom-light: #685570;
$custom-dark: #000000;
JSON
{
  "hex": "#2e173a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 279.429,
    "s": 43.21,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25457,
    "c": 0.06903,
    "h": 312.8
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#2E173A
secondary
#4E713C
accent
#D35580
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E173A

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

Preview Lab → · Contrast checker → · Palette generator →

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