#2A16B0#2A16B0

#2A16B0 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.2% C 0.218 H 273.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2A16B0
RGBrgb(42, 22, 176)
HSLhsl(248, 78%, 39%)
HSVhsv(248, 88%, 69%)
CMYKcmyk(76.1%, 87.5%, 0%, 31%)
CIE-LABlab(24.32, 54.74, -75.37)
CIE-LCHlch(24.32, 93.15, 305.99°)
OKLaboklab(37.24% 0.0136 -0.2179)
OKLCHoklch(37.24% 0.218 273.6)
XYZxyz(9.0756, 4.1997, 41.3982)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A16B0 #9CB016
analogous
#164FB0 #2A16B0 #7716B0
triadic
#2A16B0 #B02A16 #16B02A
tetradic
#2A16B0 #B0164F #9CB016 #16B077
square
#2A16B0 #B0164F #9CB016 #16B077
split-complementary
#2A16B0 #B07716 #4FB016
monochromatic
#100843 #1D0F7A #2A16B0 #3920E3 #6A56EA

Accessibility & contrast

On white

11.41
#2A16B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A16B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A16B0
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A16B0#FFFFFF#000000##FFFFFF
##2A16B01.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040B4
Deuteranopia (green-blind)
#0032AE
Tritanopia (blue-blind)
#004B68
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a16b0;
/* rgb */ color: rgb(42, 22, 176);
/* oklch */ color: oklch(37.2% 0.218 273.6);
Tailwind
colors: {
  custom: {
    50: '#7c5bc9',
    500: '#2a16b0',
    950: '#000000',
  },
}
SCSS
$custom: #2a16b0;
$custom-light: #7c5bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a16b0",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 176
  },
  "hsl": {
    "h": 247.792,
    "s": 77.778,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37236,
    "c": 0.21829,
    "h": 273.6
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#2A16B0
secondary
#BDCD55
accent
#F434DB
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0413
muted
#7D7982

Preview Lab

Preview with #2A16B0

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

Preview Lab → · Contrast checker → · Palette generator →

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