#2A15B4#2A15B4

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

Color values

HEX#2A15B4
RGBrgb(42, 21, 180)
HSLhsl(248, 79%, 39%)
HSVhsv(248, 88%, 71%)
CMYKcmyk(76.7%, 88.3%, 0%, 29.4%)
CIE-LABlab(24.71, 56.22, -77.12)
CIE-LCHlch(24.71, 95.44, 306.09°)
OKLaboklab(37.65% 0.0126 -0.2229)
OKLCHoklch(37.65% 0.223 273.2)
XYZxyz(9.4585, 4.3229, 43.5071)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A15B4 #9FB415
analogous
#154FB4 #2A15B4 #7A15B4
triadic
#2A15B4 #B42A15 #15B42A
tetradic
#2A15B4 #B4154F #9FB415 #15B47A
square
#2A15B4 #B4154F #9FB415 #15B47A
split-complementary
#2A15B4 #B47A15 #4FB415
monochromatic
#100846 #1D0F7D #2A15B4 #3B21E5 #6B58EC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A15B4#FFFFFF#000000##FFFFFF
##2A15B41.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)
#0042B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a15b4;
/* rgb */ color: rgb(42, 21, 180);
/* oklch */ color: oklch(37.6% 0.223 273.2);
Tailwind
colors: {
  custom: {
    50: '#7d5bcc',
    500: '#2a15b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a15b4;
$custom-light: #7d5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a15b4",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 247.925,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.22325,
    "h": 273.2
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#2A15B4
secondary
#BFCF56
accent
#F632DC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2A15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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