#2D17A1#2D17A1

#2D17A1 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.7% C 0.200 H 276.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#2D17A1
RGBrgb(45, 23, 161)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(72%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.80, 50.21, -68.81)
CIE-LCHlch(22.80, 85.18, 306.11°)
OKLaboklab(35.72% 0.0223 -0.1988)
OKLCHoklch(35.72% 0.2 276.4)
XYZxyz(7.8195, 3.7431, 34.0217)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D17A1 #8BA117
analogous
#1746A1 #2D17A1 #7217A1
triadic
#2D17A1 #A12D17 #17A12D
tetradic
#2D17A1 #A11746 #8BA117 #17A172
square
#2D17A1 #A11746 #8BA117 #17A172
split-complementary
#2D17A1 #A17217 #46A117
monochromatic
#0F0836 #1E0F6B #2D17A1 #3C1FD7 #654DE6

Accessibility & contrast

On white

12.01
#2D17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2D17A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D17A1
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D17A1#FFFFFF#000000##FFFFFF
##2D17A11.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d17a1;
/* rgb */ color: rgb(45, 23, 161);
/* oklch */ color: oklch(35.7% 0.200 276.4);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2d17a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d17a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d17a1",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 249.565,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35724,
    "c": 0.20007,
    "h": 276.4
  },
  "luminance": 0.03744
}

Semantic roles & 50–950 ramp

primary
#2D17A1
secondary
#B4C74C
accent
#F236D4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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