#2E174A#2E174A

#2E174A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.091 H 301.2°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2E174A
RGBrgb(46, 23, 74)
HSLhsl(267, 53%, 19%)
HSVhsv(267, 69%, 29%)
CMYKcmyk(37.8%, 68.9%, 0%, 71%)
CIE-LABlab(13.76, 23.71, -27.51)
CIE-LCHlch(13.76, 36.32, 310.76°)
OKLaboklab(26.67% 0.0473 -0.0781)
OKLCHoklch(26.67% 0.091 301.2)
XYZxyz(2.6688, 1.6880, 6.6625)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E174A #334A17
analogous
#171A4A #2E174A #48174A
triadic
#2E174A #4A2E17 #174A2E
tetradic
#2E174A #4A171A #334A17 #174A48
square
#2E174A #4A171A #334A17 #174A48
split-complementary
#2E174A #4A4817 #1A4A17
monochromatic
#0F0717 #11081B #2E174A #4B2679 #6834A7

Accessibility & contrast

On white

15.70
#2E174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E174A
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E174A#FFFFFF#000000##FFFFFF
##2E174A1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#062349
Tritanopia (blue-blind)
#28222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e174a;
/* rgb */ color: rgb(46, 23, 74);
/* oklch */ color: oklch(26.7% 0.091 301.2);
Tailwind
colors: {
  custom: {
    50: '#69557d',
    500: '#2e174a',
    950: '#000000',
  },
}
SCSS
$custom: #2e174a;
$custom-light: #69557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e174a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 267.059,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26673,
    "c": 0.09126,
    "h": 301.2
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#2E174A
secondary
#62813C
accent
#DC4C9B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E174A

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

Preview Lab → · Contrast checker → · Palette generator →

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