#2D174E#2D174E

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

Color values

HEX#2D174E
RGBrgb(45, 23, 78)
HSLhsl(264, 54%, 20%)
HSVhsv(264, 71%, 31%)
CMYKcmyk(42.3%, 70.5%, 0%, 69.4%)
CIE-LABlab(13.95, 24.66, -29.96)
CIE-LCHlch(13.95, 38.80, 309.46°)
OKLaboklab(26.88% 0.0453 -0.0853)
OKLCHoklch(26.88% 0.097 298)
XYZxyz(2.7634, 1.7207, 7.3928)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174E #384E17
analogous
#171D4E #2D174E #49174E
triadic
#2D174E #4E2D17 #174E2D
tetradic
#2D174E #4E171D #384E17 #174E49
square
#2D174E #4E171D #384E17 #174E49
split-complementary
#2D174E #4E4917 #1D4E17
monochromatic
#0E0718 #12091F #2D174E #48257D #6433AD

Accessibility & contrast

On white

15.62
#2D174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D174E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174E#FFFFFF#000000##FFFFFF
##2D174E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#252330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d174e;
/* rgb */ color: rgb(45, 23, 78);
/* oklch */ color: oklch(26.9% 0.097 298.0);
Tailwind
colors: {
  custom: {
    50: '#695580',
    500: '#2d174e',
    950: '#000000',
  },
}
SCSS
$custom: #2d174e;
$custom-light: #695580;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 264,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26884,
    "c": 0.0966,
    "h": 298
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#2D174E
secondary
#68853C
accent
#DE4AA3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D174E

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

Preview Lab → · Contrast checker → · Palette generator →

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