#2D176C#2D176C

#2D176C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.136 H 286.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2D176C
RGBrgb(45, 23, 108)
HSLhsl(256, 65%, 26%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(58.3%, 78.7%, 0%, 57.6%)
CIE-LABlab(16.76, 34.05, -45.42)
CIE-LCHlch(16.76, 56.77, 306.86°)
OKLaboklab(29.76% 0.0391 -0.1307)
OKLCHoklch(29.76% 0.136 286.7)
XYZxyz(4.0945, 2.2532, 14.4036)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176C #566C17
analogous
#172C6C #2D176C #57176C
triadic
#2D176C #6C2D17 #176C2D
tetradic
#2D176C #6C172C #566C17 #176C57
square
#2D176C #6C172C #566C17 #176C57
split-complementary
#2D176C #6C5717 #2C6C17
monochromatic
#0B0519 #180C3A #2D176C #42229E #572CD1

Accessibility & contrast

On white

14.48
#2D176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D176C
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176C#FFFFFF#000000##FFFFFF
##2D176C1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#112F40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d176c;
/* rgb */ color: rgb(45, 23, 108);
/* oklch */ color: oklch(29.8% 0.136 286.7);
Tailwind
colors: {
  custom: {
    50: '#6e5797',
    500: '#2d176c',
    950: '#000000',
  },
}
SCSS
$custom: #2d176c;
$custom-light: #6e5797;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176c",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 255.529,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29762,
    "c": 0.13644,
    "h": 286.7
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#2D176C
secondary
#88A23D
accent
#E840BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D176C

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

Preview Lab → · Contrast checker → · Palette generator →

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