#2D174D#2D174D

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

Color values

HEX#2D174D
RGBrgb(45, 23, 77)
HSLhsl(264, 54%, 20%)
HSVhsv(264, 70%, 30%)
CMYKcmyk(41.6%, 70.1%, 0%, 69.8%)
CIE-LABlab(13.86, 24.36, -29.41)
CIE-LCHlch(13.86, 38.18, 309.63°)
OKLaboklab(26.8% 0.0454 -0.0837)
OKLCHoklch(26.8% 0.095 298.5)
XYZxyz(2.7278, 1.7065, 7.2054)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174D #374D17
analogous
#171C4D #2D174D #48174D
triadic
#2D174D #4D2D17 #174D2D
tetradic
#2D174D #4D171C #374D17 #174D48
square
#2D174D #4D171C #374D17 #174D48
split-complementary
#2D174D #4D4817 #1C4D17
monochromatic
#0E0718 #11091E #2D174D #49257C #6433AB

Accessibility & contrast

On white

15.66
#2D174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D174D
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174D#FFFFFF#000000##FFFFFF
##2D174D1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d174d;
/* rgb */ color: rgb(45, 23, 77);
/* oklch */ color: oklch(26.8% 0.095 298.5);
Tailwind
colors: {
  custom: {
    50: '#69557f',
    500: '#2d174d',
    950: '#000000',
  },
}
SCSS
$custom: #2d174d;
$custom-light: #69557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174d",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 264.444,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26798,
    "c": 0.09522,
    "h": 298.5
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#2D174D
secondary
#67843C
accent
#DD4AA2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D174D

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

Preview Lab → · Contrast checker → · Palette generator →

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