#2E174B#2E174B

#2E174B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.093 H 300.6°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2E174B
RGBrgb(46, 23, 75)
HSLhsl(267, 53%, 19%)
HSVhsv(267, 69%, 29%)
CMYKcmyk(38.7%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.84, 24.01, -28.07)
CIE-LCHlch(13.84, 36.94, 310.54°)
OKLaboklab(26.76% 0.0472 -0.0797)
OKLCHoklch(26.76% 0.093 300.6)
XYZxyz(2.7028, 1.7016, 6.8413)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E174B #344B17
analogous
#171A4B #2E174B #48174B
triadic
#2E174B #4B2E17 #174B2E
tetradic
#2E174B #4B171A #344B17 #174B48
square
#2E174B #4B171A #344B17 #174B48
split-complementary
#2E174B #4B4817 #1A4B17
monochromatic
#0E0717 #11091C #2E174B #4B257A #6734A9

Accessibility & contrast

On white

15.67
#2E174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E174B
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E174B#FFFFFF#000000##FFFFFF
##2E174B1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#05234A
Tritanopia (blue-blind)
#28222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e174b;
/* rgb */ color: rgb(46, 23, 75);
/* oklch */ color: oklch(26.8% 0.093 300.6);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2e174b',
    950: '#000000',
  },
}
SCSS
$custom: #2e174b;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e174b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 266.538,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26756,
    "c": 0.09264,
    "h": 300.6
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#2E174B
secondary
#63823C
accent
#DC4B9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2E174B

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

Preview Lab → · Contrast checker → · Palette generator →

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