#2A17A0#2A17A0

#2A17A0 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.4% C 0.200 H 275.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#2A17A0
RGBrgb(42, 23, 160)
HSLhsl(248, 75%, 36%)
HSVhsv(248, 86%, 63%)
CMYKcmyk(73.8%, 85.6%, 0%, 37.3%)
CIE-LABlab(22.45, 49.71, -68.79)
CIE-LCHlch(22.45, 84.87, 305.85°)
OKLaboklab(35.39% 0.0183 -0.1988)
OKLCHoklch(35.39% 0.2 275.2)
XYZxyz(7.6043, 3.6423, 33.5532)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A17A0 #8DA017
analogous
#1748A0 #2A17A0 #6E17A0
triadic
#2A17A0 #A02A17 #17A02A
tetradic
#2A17A0 #A01748 #8DA017 #17A06E
square
#2A17A0 #A01748 #8DA017 #17A06E
split-complementary
#2A17A0 #A06E17 #48A017
monochromatic
#0E0835 #1C0F6A #2A17A0 #381FD6 #614CE5

Accessibility & contrast

On white

12.15
#2A17A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A17A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A17A0
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A17A0#FFFFFF#000000##FFFFFF
##2A17A01.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a17a0;
/* rgb */ color: rgb(42, 23, 160);
/* oklch */ color: oklch(35.4% 0.200 275.2);
Tailwind
colors: {
  custom: {
    50: '#785abe',
    500: '#2a17a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a17a0;
$custom-light: #785abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a17a0",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 160
  },
  "hsl": {
    "h": 248.321,
    "s": 74.863,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35389,
    "c": 0.19967,
    "h": 275.2
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A17A0

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

Preview Lab → · Contrast checker → · Palette generator →

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