#2B17A1#2B17A1

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

Color values

HEX#2B17A1
RGBrgb(43, 23, 161)
HSLhsl(249, 75%, 36%)
HSVhsv(249, 86%, 63%)
CMYKcmyk(73.3%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.65, 50.07, -69.07)
CIE-LCHlch(22.65, 85.31, 305.94°)
OKLaboklab(35.58% 0.0194 -0.1996)
OKLCHoklch(35.58% 0.201 275.5)
XYZxyz(7.7336, 3.6988, 34.0177)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B17A1 #8DA117
analogous
#1748A1 #2B17A1 #7017A1
triadic
#2B17A1 #A12B17 #17A12B
tetradic
#2B17A1 #A11748 #8DA117 #17A170
square
#2B17A1 #A11748 #8DA117 #17A170
split-complementary
#2B17A1 #A17017 #48A117
monochromatic
#0E0836 #1D0F6B #2B17A1 #391FD7 #634DE6

Accessibility & contrast

On white

12.07
#2B17A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B17A1
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B17A1#FFFFFF#000000##FFFFFF
##2B17A11.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.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: #2b17a1;
/* rgb */ color: rgb(43, 23, 161);
/* oklch */ color: oklch(35.6% 0.201 275.5);
Tailwind
colors: {
  custom: {
    50: '#795abe',
    500: '#2b17a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b17a1;
$custom-light: #795abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2b17a1",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 248.696,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35579,
    "c": 0.20056,
    "h": 275.5
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B17A1

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

Preview Lab → · Contrast checker → · Palette generator →

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