#2D177D#2D177D

#2D177D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.158 H 282.5°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2D177D
RGBrgb(45, 23, 125)
HSLhsl(253, 69%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(64%, 81.6%, 0%, 51%)
CIE-LABlab(18.59, 39.37, -53.37)
CIE-LCHlch(18.59, 66.32, 306.41°)
OKLaboklab(31.59% 0.034 -0.1539)
OKLCHoklch(31.59% 0.158 282.5)
XYZxyz(5.0891, 2.6510, 19.6416)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D177D #677D17
analogous
#17347D #2D177D #60177D
triadic
#2D177D #7D2D17 #177D2D
tetradic
#2D177D #7D1734 #677D17 #177D60
square
#2D177D #7D1734 #677D17 #177D60
split-complementary
#2D177D #7D6017 #347D17
monochromatic
#09051A #1A0D49 #2D177D #4021B1 #5835DA

Accessibility & contrast

On white

13.72
#2D177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D177D
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D177D#FFFFFF#000000##FFFFFF
##2D177D1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d177d;
/* rgb */ color: rgb(45, 23, 125);
/* oklch */ color: oklch(31.6% 0.158 282.5);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2d177d',
    950: '#000000',
  },
}
SCSS
$custom: #2d177d;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d177d",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 252.941,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31586,
    "c": 0.15765,
    "h": 282.5
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#2D177D
secondary
#99B23E
accent
#EC3CC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D177D

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

Preview Lab → · Contrast checker → · Palette generator →

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