#2D173F#2D173F

#2D173F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.076 H 307.3°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#2D173F
RGBrgb(45, 23, 63)
HSLhsl(273, 47%, 17%)
HSVhsv(273, 63%, 25%)
CMYKcmyk(28.6%, 63.5%, 0%, 75.3%)
CIE-LABlab(12.79, 20.20, -21.38)
CIE-LCHlch(12.79, 29.41, 313.38°)
OKLaboklab(25.68% 0.0458 -0.0601)
OKLCHoklch(25.68% 0.076 307.3)
XYZxyz(2.2856, 1.5296, 4.8765)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D173F #293F17
analogous
#19173F #2D173F #3F173D
triadic
#2D173F #3F2D17 #173F2D
tetradic
#2D173F #3F1917 #293F17 #173D3F
square
#2D173F #3F1917 #293F17 #173D3F
split-complementary
#2D173F #3D3F17 #173F19
monochromatic
#100816 #100816 #2D173F #4D276C #6D3899

Accessibility & contrast

On white

16.08
#2D173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D173F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D173F
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D173F#FFFFFF#000000##FFFFFF
##2D173F1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092040
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#2A1E28
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d173f;
/* rgb */ color: rgb(45, 23, 63);
/* oklch */ color: oklch(25.7% 0.076 307.3);
Tailwind
colors: {
  custom: {
    50: '#675574',
    500: '#2d173f',
    950: '#000000',
  },
}
SCSS
$custom: #2d173f;
$custom-light: #675574;
$custom-dark: #000000;
JSON
{
  "hex": "#2d173f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 273,
    "s": 46.512,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25676,
    "c": 0.07559,
    "h": 307.3
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#2D173F
secondary
#56763C
accent
#D6528D
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D173F

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

Preview Lab → · Contrast checker → · Palette generator →

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