#2D17A0#2D17A0

#2D17A0 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.199 H 276.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2D17A0
RGBrgb(45, 23, 160)
HSLhsl(250, 75%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.9%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.68, 49.91, -68.40)
CIE-LCHlch(22.68, 84.68, 306.12°)
OKLaboklab(35.61% 0.0226 -0.1976)
OKLCHoklch(35.61% 0.199 276.5)
XYZxyz(7.7317, 3.7080, 33.5591)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D17A0 #8AA017
analogous
#1745A0 #2D17A0 #7117A0
triadic
#2D17A0 #A02D17 #17A02D
tetradic
#2D17A0 #A01745 #8AA017 #17A071
square
#2D17A0 #A01745 #8AA017 #17A071
split-complementary
#2D17A0 #A07117 #45A017
monochromatic
#0F0835 #1E0F6A #2D17A0 #3C1FD6 #654CE5

Accessibility & contrast

On white

12.06
#2D17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2D17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D17A0
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D17A0#FFFFFF#000000##FFFFFF
##2D17A01.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d17a0;
/* rgb */ color: rgb(45, 23, 160);
/* oklch */ color: oklch(35.6% 0.199 276.5);
Tailwind
colors: {
  custom: {
    50: '#795abe',
    500: '#2d17a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d17a0;
$custom-light: #795abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d17a0",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 249.635,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35606,
    "c": 0.19893,
    "h": 276.5
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#2D17A0
secondary
#B3C74C
accent
#F136D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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