#2D173B#2D173B

#2D173B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.070 H 310.6°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2D173B
RGBrgb(45, 23, 59)
HSLhsl(277, 44%, 16%)
HSVhsv(277, 61%, 23%)
CMYKcmyk(23.7%, 61%, 0%, 76.9%)
CIE-LABlab(12.52, 19.08, -18.98)
CIE-LCHlch(12.52, 26.91, 315.14°)
OKLaboklab(25.39% 0.0455 -0.0531)
OKLCHoklch(25.39% 0.07 310.6)
XYZxyz(2.1779, 1.4865, 4.3090)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D173B #253B17
analogous
#1B173B #2D173B #3B1737
triadic
#2D173B #3B2D17 #173B2D
tetradic
#2D173B #3B1B17 #253B17 #17373B
square
#2D173B #3B1B17 #253B17 #17373B
split-complementary
#2D173B #373B17 #173B1B
monochromatic
#110916 #110916 #2D173B #4F2867 #703993

Accessibility & contrast

On white

16.19
#2D173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D173B
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D173B#FFFFFF#000000##FFFFFF
##2D173B1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D203C
Deuteranopia (green-blind)
#14213A
Tritanopia (blue-blind)
#2B1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d173b;
/* rgb */ color: rgb(45, 23, 59);
/* oklch */ color: oklch(25.4% 0.070 310.6);
Tailwind
colors: {
  custom: {
    50: '#675571',
    500: '#2d173b',
    950: '#000000',
  },
}
SCSS
$custom: #2d173b;
$custom-light: #675571;
$custom-dark: #000000;
JSON
{
  "hex": "#2d173b",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 276.667,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25386,
    "c": 0.06994,
    "h": 310.6
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#2D173B
secondary
#51723C
accent
#D45486
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2D173B

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

Preview Lab → · Contrast checker → · Palette generator →

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