#2D174A#2D174A

#2D174A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.091 H 300.1°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2D174A
RGBrgb(45, 23, 74)
HSLhsl(266, 53%, 19%)
HSVhsv(266, 69%, 29%)
CMYKcmyk(39.2%, 68.9%, 0%, 71%)
CIE-LABlab(13.62, 23.44, -27.73)
CIE-LCHlch(13.62, 36.31, 310.21°)
OKLaboklab(26.54% 0.0457 -0.0788)
OKLCHoklch(26.54% 0.091 300.1)
XYZxyz(2.6243, 1.6651, 6.6604)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174A #344A17
analogous
#171B4A #2D174A #47174A
triadic
#2D174A #4A2D17 #174A2D
tetradic
#2D174A #4A171B #344A17 #174A47
square
#2D174A #4A171B #344A17 #174A47
split-complementary
#2D174A #4A4717 #1B4A17
monochromatic
#0E0717 #11081B #2D174A #492679 #6634A7

Accessibility & contrast

On white

15.75
#2D174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D174A
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174A#FFFFFF#000000##FFFFFF
##2D174A1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#052249
Tritanopia (blue-blind)
#27222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d174a;
/* rgb */ color: rgb(45, 23, 74);
/* oklch */ color: oklch(26.5% 0.091 300.1);
Tailwind
colors: {
  custom: {
    50: '#69557d',
    500: '#2d174a',
    950: '#000000',
  },
}
SCSS
$custom: #2d174a;
$custom-light: #69557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174a",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 265.882,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26544,
    "c": 0.09106,
    "h": 300.1
  },
  "luminance": 0.01665
}

Semantic roles & 50–950 ramp

primary
#2D174A
secondary
#63813C
accent
#DC4C9E
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2D174A

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

Preview Lab → · Contrast checker → · Palette generator →

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