#2A15B3#2A15B3

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

Color values

HEX#2A15B3
RGBrgb(42, 21, 179)
HSLhsl(248, 79%, 39%)
HSVhsv(248, 88%, 70%)
CMYKcmyk(76.5%, 88.3%, 0%, 29.8%)
CIE-LABlab(24.58, 55.94, -76.73)
CIE-LCHlch(24.58, 94.96, 306.09°)
OKLaboklab(37.52% 0.0129 -0.2218)
OKLCHoklch(37.52% 0.222 273.3)
XYZxyz(9.3570, 4.2823, 42.9725)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A15B3 #9EB315
analogous
#154FB3 #2A15B3 #7915B3
triadic
#2A15B3 #B32A15 #15B32A
tetradic
#2A15B3 #B3154F #9EB315 #15B379
square
#2A15B3 #B3154F #9EB315 #15B379
split-complementary
#2A15B3 #B37915 #4FB315
monochromatic
#100845 #1D0F7C #2A15B3 #3A20E5 #6B57EB

Accessibility & contrast

On white

11.31
#2A15B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A15B3
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A15B3#FFFFFF#000000##FFFFFF
##2A15B31.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a15b3;
/* rgb */ color: rgb(42, 21, 179);
/* oklch */ color: oklch(37.5% 0.222 273.3);
Tailwind
colors: {
  custom: {
    50: '#7d5bcb',
    500: '#2a15b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a15b3;
$custom-light: #7d5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a15b3",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 247.975,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37523,
    "c": 0.22216,
    "h": 273.3
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#2A15B3
secondary
#BECE56
accent
#F532DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2A15B3

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

Preview Lab → · Contrast checker → · Palette generator →

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