#2A15A1#2A15A1

#2A15A1 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.3% C 0.202 H 275.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2A15A1
RGBrgb(42, 21, 161)
HSLhsl(249, 77%, 36%)
HSVhsv(249, 87%, 63%)
CMYKcmyk(73.9%, 87%, 0%, 36.9%)
CIE-LABlab(22.31, 50.80, -69.65)
CIE-LCHlch(22.31, 86.21, 306.11°)
OKLaboklab(35.33% 0.0185 -0.2013)
OKLCHoklch(35.33% 0.202 275.3)
XYZxyz(7.6539, 3.6010, 34.0030)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A15A1 #8CA115
analogous
#1546A1 #2A15A1 #7015A1
triadic
#2A15A1 #A12A15 #15A12A
tetradic
#2A15A1 #A11546 #8CA115 #15A170
square
#2A15A1 #A11546 #8CA115 #15A170
split-complementary
#2A15A1 #A17015 #46A115
monochromatic
#0E0735 #1C0E6B #2A15A1 #381CD7 #6149E7

Accessibility & contrast

On white

12.21
#2A15A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A15A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A15A1
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A15A1#FFFFFF#000000##FFFFFF
##2A15A11.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a15a1;
/* rgb */ color: rgb(42, 21, 161);
/* oklch */ color: oklch(35.3% 0.202 275.3);
Tailwind
colors: {
  custom: {
    50: '#7959be',
    500: '#2a15a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a15a1;
$custom-light: #7959be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a15a1",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 161
  },
  "hsl": {
    "h": 249,
    "s": 76.923,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35325,
    "c": 0.20211,
    "h": 275.3
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A15A1

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

Preview Lab → · Contrast checker → · Palette generator →

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