#2D174B#2D174B

#2D174B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.092 H 299.5°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#2D174B
RGBrgb(45, 23, 75)
HSLhsl(265, 53%, 19%)
HSVhsv(265, 69%, 29%)
CMYKcmyk(40%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.70, 23.75, -28.29)
CIE-LCHlch(13.70, 36.94, 310.01°)
OKLaboklab(26.63% 0.0456 -0.0804)
OKLCHoklch(26.63% 0.092 299.5)
XYZxyz(2.6583, 1.6787, 6.8392)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174B #354B17
analogous
#171B4B #2D174B #47174B
triadic
#2D174B #4B2D17 #174B2D
tetradic
#2D174B #4B171B #354B17 #174B47
square
#2D174B #4B171B #354B17 #174B47
split-complementary
#2D174B #4B4717 #1B4B17
monochromatic
#0E0717 #11091C #2D174B #49257A #6534A9

Accessibility & contrast

On white

15.72
#2D174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D174B
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174B#FFFFFF#000000##FFFFFF
##2D174B1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#03234A
Tritanopia (blue-blind)
#26222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d174b;
/* rgb */ color: rgb(45, 23, 75);
/* oklch */ color: oklch(26.6% 0.092 299.5);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2d174b',
    950: '#000000',
  },
}
SCSS
$custom: #2d174b;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174b",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 265.385,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26628,
    "c": 0.09245,
    "h": 299.5
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#2D174B
secondary
#64823C
accent
#DC4B9F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D174B

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

Preview Lab → · Contrast checker → · Palette generator →

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