#2A15A0#2A15A0

#2A15A0 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.2% C 0.201 H 275.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2A15A0
RGBrgb(42, 21, 160)
HSLhsl(249, 77%, 35%)
HSVhsv(249, 87%, 63%)
CMYKcmyk(73.8%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.18, 50.51, -69.24)
CIE-LCHlch(22.18, 85.71, 306.11°)
OKLaboklab(35.2% 0.0188 -0.2001)
OKLCHoklch(35.2% 0.201 275.4)
XYZxyz(7.5661, 3.5659, 33.5404)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A15A0 #8BA015
analogous
#1545A0 #2A15A0 #7015A0
triadic
#2A15A0 #A02A15 #15A02A
tetradic
#2A15A0 #A01545 #8BA015 #15A070
square
#2A15A0 #A01545 #8BA015 #15A070
split-complementary
#2A15A0 #A07015 #45A015
monochromatic
#0E0734 #1C0E6A #2A15A0 #381CD6 #6048E7

Accessibility & contrast

On white

12.26
#2A15A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2A15A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A15A0
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A15A0#FFFFFF#000000##FFFFFF
##2A15A01.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#002F9E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a15a0;
/* rgb */ color: rgb(42, 21, 160);
/* oklch */ color: oklch(35.2% 0.201 275.4);
Tailwind
colors: {
  custom: {
    50: '#7859be',
    500: '#2a15a0',
    950: '#000000',
  },
}
SCSS
$custom: #2a15a0;
$custom-light: #7859be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a15a0",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 249.065,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35204,
    "c": 0.20097,
    "h": 275.4
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#2A15A0
secondary
#B5C849
accent
#F334D7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2A15A0

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

Preview Lab → · Contrast checker → · Palette generator →

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