#2D174C#2D174C

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

Color values

HEX#2D174C
RGBrgb(45, 23, 76)
HSLhsl(265, 54%, 19%)
HSVhsv(265, 70%, 30%)
CMYKcmyk(40.8%, 69.7%, 0%, 70.2%)
CIE-LABlab(13.78, 24.05, -28.85)
CIE-LCHlch(13.78, 37.56, 309.82°)
OKLaboklab(26.71% 0.0455 -0.0821)
OKLCHoklch(26.71% 0.094 299)
XYZxyz(2.6928, 1.6925, 7.0209)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174C #364C17
analogous
#171C4C #2D174C #48174C
triadic
#2D174C #4C2D17 #174C2D
tetradic
#2D174C #4C171C #364C17 #174C48
square
#2D174C #4C171C #364C17 #174C48
split-complementary
#2D174C #4C4817 #1C4C17
monochromatic
#0E0717 #11091D #2D174C #49257B #6533AA

Accessibility & contrast

On white

15.69
#2D174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D174C
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174C#FFFFFF#000000##FFFFFF
##2D174C1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#02234B
Tritanopia (blue-blind)
#26232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d174c;
/* rgb */ color: rgb(45, 23, 76);
/* oklch */ color: oklch(26.7% 0.094 299.0);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2d174c',
    950: '#000000',
  },
}
SCSS
$custom: #2d174c;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174c",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 264.906,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26713,
    "c": 0.09384,
    "h": 299
  },
  "luminance": 0.01692
}

Semantic roles & 50–950 ramp

primary
#2D174C
secondary
#65833C
accent
#DD4BA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D174C

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

Preview Lab → · Contrast checker → · Palette generator →

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