#2A17CD#2A17CD

#2A17CD is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.9% C 0.249 H 271.2°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2A17CD
RGBrgb(42, 23, 205)
HSLhsl(246, 80%, 45%)
HSVhsv(246, 89%, 80%)
CMYKcmyk(79.5%, 88.8%, 0%, 19.6%)
CIE-LABlab(28.14, 62.47, -86.17)
CIE-LCHlch(28.14, 106.43, 305.94°)
OKLaboklab(40.88% 0.0053 -0.2491)
OKLCHoklch(40.88% 0.249 271.2)
XYZxyz(12.2770, 5.5114, 58.1625)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A17CD #BACD17
analogous
#175FCD #2A17CD #8517CD
triadic
#2A17CD #CD2A17 #17CD2A
tetradic
#2A17CD #CD175F #BACD17 #17CD85
square
#2A17CD #CD175F #BACD17 #17CD85
split-complementary
#2A17CD #CD8517 #5FCD17
monochromatic
#130B5F #1F1196 #2A17CD #4B38E9 #7D70EF

Accessibility & contrast

On white

9.99
#2A17CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A17CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A17CD
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A17CD#FFFFFF#000000##FFFFFF
##2A17CD1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BD2
Deuteranopia (green-blind)
#0039CA
Tritanopia (blue-blind)
#005779
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a17cd;
/* rgb */ color: rgb(42, 23, 205);
/* oklch */ color: oklch(40.9% 0.249 271.2);
Tailwind
colors: {
  custom: {
    50: '#835ede',
    500: '#2a17cd',
    950: '#000000',
  },
}
SCSS
$custom: #2a17cd;
$custom-light: #835ede;
$custom-dark: #000000;
JSON
{
  "hex": "#2a17cd",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 205
  },
  "hsl": {
    "h": 246.264,
    "s": 79.825,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4088,
    "c": 0.24915,
    "h": 271.2
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#2A17CD
secondary
#CAD56B
accent
#F632E2
background
#F9F5FD
surface
#F1EAFB
border
#CBC6D4
text
#0D0515
muted
#7E7983

Preview Lab

Preview with #2A17CD

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

Preview Lab → · Contrast checker → · Palette generator →

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