#2A17A1#2A17A1

#2A17A1 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.5% C 0.201 H 275.1°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#2A17A1
RGBrgb(42, 23, 161)
HSLhsl(248, 75%, 36%)
HSVhsv(248, 86%, 63%)
CMYKcmyk(73.9%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.58, 50.00, -69.20)
CIE-LCHlch(22.58, 85.37, 305.85°)
OKLaboklab(35.51% 0.018 -0.2)
OKLCHoklch(35.51% 0.201 275.1)
XYZxyz(7.6921, 3.6775, 34.0157)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A17A1 #8EA117
analogous
#1749A1 #2A17A1 #6F17A1
triadic
#2A17A1 #A12A17 #17A12A
tetradic
#2A17A1 #A11749 #8EA117 #17A16F
square
#2A17A1 #A11749 #8EA117 #17A16F
split-complementary
#2A17A1 #A16F17 #49A117
monochromatic
#0E0836 #1C0F6B #2A17A1 #381FD7 #624DE6

Accessibility & contrast

On white

12.10
#2A17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A17A1
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A17A1#FFFFFF#000000##FFFFFF
##2A17A11.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a17a1;
/* rgb */ color: rgb(42, 23, 161);
/* oklch */ color: oklch(35.5% 0.201 275.1);
Tailwind
colors: {
  custom: {
    50: '#785abe',
    500: '#2a17a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a17a1;
$custom-light: #785abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a17a1",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 248.261,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35509,
    "c": 0.2008,
    "h": 275.1
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#2A17A1
secondary
#B6C74C
accent
#F236D8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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