#2A17B3#2A17B3

#2A17B3 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.7% C 0.221 H 273.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2A17B3
RGBrgb(42, 23, 179)
HSLhsl(247, 77%, 40%)
HSVhsv(247, 87%, 70%)
CMYKcmyk(76.5%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.82, 55.22, -76.33)
CIE-LCHlch(24.82, 94.21, 305.88°)
OKLaboklab(37.69% 0.0125 -0.2207)
OKLCHoklch(37.69% 0.221 273.3)
XYZxyz(9.3952, 4.3587, 42.9852)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A17B3 #A0B317
analogous
#1752B3 #2A17B3 #7817B3
triadic
#2A17B3 #B32A17 #17B32A
tetradic
#2A17B3 #B31752 #A0B317 #17B378
square
#2A17B3 #B31752 #A0B317 #17B378
split-complementary
#2A17B3 #B37817 #52B317
monochromatic
#110947 #1D107D #2A17B3 #3C24E3 #6C5BEA

Accessibility & contrast

On white

11.22
#2A17B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A17B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A17B3
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A17B3#FFFFFF#000000##FFFFFF
##2A17B31.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a17b3;
/* rgb */ color: rgb(42, 23, 179);
/* oklch */ color: oklch(37.7% 0.221 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ccb',
    500: '#2a17b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a17b3;
$custom-light: #7d5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a17b3",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 247.308,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.22102,
    "h": 273.3
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#2A17B3
secondary
#BFCD58
accent
#F434DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2A17B3

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

Preview Lab → · Contrast checker → · Palette generator →

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