#2A16B3#2A16B3

#2A16B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.6% C 0.222 H 273.3°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2A16B3
RGBrgb(42, 22, 179)
HSLhsl(248, 78%, 39%)
HSVhsv(248, 88%, 70%)
CMYKcmyk(76.5%, 87.7%, 0%, 29.8%)
CIE-LABlab(24.70, 55.59, -76.54)
CIE-LCHlch(24.70, 94.59, 305.99°)
OKLaboklab(37.6% 0.0127 -0.2212)
OKLCHoklch(37.6% 0.222 273.3)
XYZxyz(9.3757, 4.3197, 42.9788)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A16B3 #9FB316
analogous
#1651B3 #2A16B3 #7816B3
triadic
#2A16B3 #B32A16 #16B32A
tetradic
#2A16B3 #B31651 #9FB316 #16B378
square
#2A16B3 #B31651 #9FB316 #16B378
split-complementary
#2A16B3 #B37816 #51B316
monochromatic
#100946 #1D0F7C #2A16B3 #3B22E4 #6B59EB

Accessibility & contrast

On white

11.26
#2A16B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A16B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A16B3
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A16B3#FFFFFF#000000##FFFFFF
##2A16B31.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a16b3;
/* rgb */ color: rgb(42, 22, 179);
/* oklch */ color: oklch(37.6% 0.222 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d5ccb',
    500: '#2a16b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a16b3;
$custom-light: #7d5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a16b3",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 179
  },
  "hsl": {
    "h": 247.643,
    "s": 78.109,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37603,
    "c": 0.2216,
    "h": 273.3
  },
  "luminance": 0.04321
}

Semantic roles & 50–950 ramp

primary
#2A16B3
secondary
#BFCE57
accent
#F533DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2A16B3

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

Preview Lab → · Contrast checker → · Palette generator →

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