#2D173A#2D173A

#2D173A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.3% C 0.069 H 311.5°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2D173A
RGBrgb(45, 23, 58)
HSLhsl(278, 43%, 16%)
HSVhsv(278, 60%, 23%)
CMYKcmyk(22.4%, 60.3%, 0%, 77.3%)
CIE-LABlab(12.46, 18.80, -18.37)
CIE-LCHlch(12.46, 26.29, 315.66°)
OKLaboklab(25.32% 0.0454 -0.0514)
OKLCHoklch(25.32% 0.069 311.5)
XYZxyz(2.1522, 1.4762, 4.1737)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D173A #243A17
analogous
#1B173A #2D173A #3A1735
triadic
#2D173A #3A2D17 #173A2D
tetradic
#2D173A #3A1B17 #243A17 #17353A
square
#2D173A #3A1B17 #243A17 #17353A
split-complementary
#2D173A #353A17 #173A1B
monochromatic
#110916 #110916 #2D173A #4F2866 #713A92

Accessibility & contrast

On white

16.21
#2D173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D173A
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D173A#FFFFFF#000000##FFFFFF
##2D173A1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1F3B
Deuteranopia (green-blind)
#152139
Tritanopia (blue-blind)
#2C1D25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d173a;
/* rgb */ color: rgb(45, 23, 58);
/* oklch */ color: oklch(25.3% 0.069 311.5);
Tailwind
colors: {
  custom: {
    50: '#675570',
    500: '#2d173a',
    950: '#000000',
  },
}
SCSS
$custom: #2d173a;
$custom-light: #675570;
$custom-dark: #000000;
JSON
{
  "hex": "#2d173a",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 277.714,
    "s": 43.21,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25316,
    "c": 0.06854,
    "h": 311.5
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2D173A
secondary
#50713C
accent
#D35584
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2D173A

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

Preview Lab → · Contrast checker → · Palette generator →

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