#2E174D#2E174D

#2E174D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.095 H 299.5°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2E174D
RGBrgb(46, 23, 77)
HSLhsl(266, 54%, 20%)
HSVhsv(266, 70%, 30%)
CMYKcmyk(40.3%, 70.1%, 0%, 69.8%)
CIE-LABlab(14.00, 24.61, -29.18)
CIE-LCHlch(14.00, 38.18, 310.14°)
OKLaboklab(26.92% 0.047 -0.083)
OKLCHoklch(26.92% 0.095 299.5)
XYZxyz(2.7723, 1.7294, 7.2075)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E174D #364D17
analogous
#171B4D #2E174D #49174D
triadic
#2E174D #4D2E17 #174D2E
tetradic
#2E174D #4D171B #364D17 #174D49
square
#2E174D #4D171B #364D17 #174D49
split-complementary
#2E174D #4D4917 #1B4D17
monochromatic
#0E0718 #12091E #2E174D #4A257C #6633AB

Accessibility & contrast

On white

15.60
#2E174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E174D
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E174D#FFFFFF#000000##FFFFFF
##2E174D1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#02234C
Tritanopia (blue-blind)
#27232F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e174d;
/* rgb */ color: rgb(46, 23, 77);
/* oklch */ color: oklch(26.9% 0.095 299.5);
Tailwind
colors: {
  custom: {
    50: '#6a557f',
    500: '#2e174d',
    950: '#000000',
  },
}
SCSS
$custom: #2e174d;
$custom-light: #6a557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e174d",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 265.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26925,
    "c": 0.0954,
    "h": 299.5
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#2E174D
secondary
#65843C
accent
#DD4A9F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E174D

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

Preview Lab → · Contrast checker → · Palette generator →

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