#2D176B#2D176B

#2D176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.135 H 286.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2D176B
RGBrgb(45, 23, 107)
HSLhsl(256, 65%, 25%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(57.9%, 78.5%, 0%, 58%)
CIE-LABlab(16.66, 33.74, -44.93)
CIE-LCHlch(16.66, 56.19, 306.90°)
OKLaboklab(29.66% 0.0394 -0.1293)
OKLCHoklch(29.66% 0.135 286.9)
XYZxyz(4.0416, 2.2320, 14.1249)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176B #556B17
analogous
#172B6B #2D176B #57176B
triadic
#2D176B #6B2D17 #176B2D
tetradic
#2D176B #6B172B #556B17 #176B57
square
#2D176B #6B172B #556B17 #176B57
split-complementary
#2D176B #6B5717 #2B6B17
monochromatic
#0B0519 #180C39 #2D176B #42229D #572DD0

Accessibility & contrast

On white

14.52
#2D176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D176B
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176B#FFFFFF#000000##FFFFFF
##2D176B1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#122E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d176b;
/* rgb */ color: rgb(45, 23, 107);
/* oklch */ color: oklch(29.7% 0.135 286.9);
Tailwind
colors: {
  custom: {
    50: '#6e5796',
    500: '#2d176b',
    950: '#000000',
  },
}
SCSS
$custom: #2d176b;
$custom-light: #6e5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176b",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 255.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29658,
    "c": 0.13516,
    "h": 286.9
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#2D176B
secondary
#87A13D
accent
#E840BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D176B

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

Preview Lab → · Contrast checker → · Palette generator →

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