#2E173B#2E173B

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

Color values

HEX#2E173B
RGBrgb(46, 23, 59)
HSLhsl(278, 44%, 16%)
HSVhsv(278, 61%, 23%)
CMYKcmyk(22%, 61%, 0%, 76.9%)
CIE-LABlab(12.67, 19.41, -18.74)
CIE-LCHlch(12.67, 26.98, 316.00°)
OKLaboklab(25.53% 0.047 -0.0524)
OKLCHoklch(25.53% 0.07 311.9)
XYZxyz(2.2224, 1.5095, 4.3111)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E173B #243B17
analogous
#1C173B #2E173B #3B1736
triadic
#2E173B #3B2E17 #173B2E
tetradic
#2E173B #3B1C17 #243B17 #17363B
square
#2E173B #3B1C17 #243B17 #17363B
split-complementary
#2E173B #363B17 #173B1C
monochromatic
#110916 #110916 #2E173B #502867 #733993

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E173B#FFFFFF#000000##FFFFFF
##2E173B1.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)
#0E203C
Deuteranopia (green-blind)
#15213A
Tritanopia (blue-blind)
#2D1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e173b;
/* rgb */ color: rgb(46, 23, 59);
/* oklch */ color: oklch(25.5% 0.070 311.9);
Tailwind
colors: {
  custom: {
    50: '#685571',
    500: '#2e173b',
    950: '#000000',
  },
}
SCSS
$custom: #2e173b;
$custom-light: #685571;
$custom-dark: #000000;
JSON
{
  "hex": "#2e173b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 278.333,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25526,
    "c": 0.07041,
    "h": 311.9
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#2E173B
secondary
#4F723C
accent
#D45482
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2E173B

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

Preview Lab → · Contrast checker → · Palette generator →

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