#2D176D#2D176D

#2D176D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.138 H 286.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2D176D
RGBrgb(45, 23, 109)
HSLhsl(255, 65%, 26%)
HSVhsv(255, 79%, 43%)
CMYKcmyk(58.7%, 78.9%, 0%, 57.3%)
CIE-LABlab(16.87, 34.37, -45.90)
CIE-LCHlch(16.87, 57.34, 306.83°)
OKLaboklab(29.87% 0.0388 -0.1321)
OKLCHoklch(29.87% 0.138 286.4)
XYZxyz(4.1481, 2.2746, 14.6855)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176D #576D17
analogous
#172C6D #2D176D #58176D
triadic
#2D176D #6D2D17 #176D2D
tetradic
#2D176D #6D172C #576D17 #176D58
square
#2D176D #6D172C #576D17 #176D58
split-complementary
#2D176D #6D5817 #2C6D17
monochromatic
#0A0519 #180C3A #2D176D #4222A0 #572CD2

Accessibility & contrast

On white

14.43
#2D176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D176D
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176D#FFFFFF#000000##FFFFFF
##2D176D1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#0F2F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d176d;
/* rgb */ color: rgb(45, 23, 109);
/* oklch */ color: oklch(29.9% 0.138 286.4);
Tailwind
colors: {
  custom: {
    50: '#6e5798',
    500: '#2d176d',
    950: '#000000',
  },
}
SCSS
$custom: #2d176d;
$custom-light: #6e5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176d",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 255.349,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29866,
    "c": 0.13771,
    "h": 286.4
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#2D176D
secondary
#89A33D
accent
#E840BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D176D

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

Preview Lab → · Contrast checker → · Palette generator →

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