#2D176A#2D176A

#2D176A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.134 H 287.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2D176A
RGBrgb(45, 23, 106)
HSLhsl(256, 64%, 25%)
HSVhsv(256, 78%, 42%)
CMYKcmyk(57.5%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.56, 33.43, -44.45)
CIE-LCHlch(16.56, 55.61, 306.94°)
OKLaboklab(29.56% 0.0397 -0.1279)
OKLCHoklch(29.56% 0.134 287.2)
XYZxyz(3.9893, 2.2111, 13.8494)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176A #546A17
analogous
#172A6A #2D176A #57176A
triadic
#2D176A #6A2D17 #176A2D
tetradic
#2D176A #6A172A #546A17 #176A57
square
#2D176A #6A172A #546A17 #176A57
split-complementary
#2D176A #6A5717 #2A6A17
monochromatic
#0B0519 #180C38 #2D176A #42229C #582DCF

Accessibility & contrast

On white

14.56
#2D176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D176A
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176A#FFFFFF#000000##FFFFFF
##2D176A1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#132E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d176a;
/* rgb */ color: rgb(45, 23, 106);
/* oklch */ color: oklch(29.6% 0.134 287.2);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2d176a',
    950: '#000000',
  },
}
SCSS
$custom: #2d176a;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176a",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 255.904,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29555,
    "c": 0.13388,
    "h": 287.2
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#2D176A
secondary
#86A03D
accent
#E740BB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D176A

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

Preview Lab → · Contrast checker → · Palette generator →

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