#2815A5#2815A5

#2815A5 is a dark, highly saturated blue. Relative luminance 0.037; OKLCH L 35.7% C 0.207 H 274.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2815A5
RGBrgb(40, 21, 165)
HSLhsl(248, 77%, 36%)
HSVhsv(248, 87%, 65%)
CMYKcmyk(75.8%, 87.3%, 0%, 35.3%)
CIE-LABlab(22.66, 51.85, -71.49)
CIE-LCHlch(22.66, 88.31, 305.95°)
OKLaboklab(35.68% 0.0145 -0.2066)
OKLCHoklch(35.68% 0.207 274)
XYZxyz(7.9325, 3.7032, 35.8868)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2815A5 #92A515
analogous
#154AA5 #2815A5 #7015A5
triadic
#2815A5 #A52815 #15A528
tetradic
#2815A5 #A5154A #92A515 #15A570
square
#2815A5 #A5154A #92A515 #15A570
split-complementary
#2815A5 #A57015 #4AA515
monochromatic
#0E0738 #1B0E6F #2815A5 #351CDB #614CE8

Accessibility & contrast

On white

12.06
#2815A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2815A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2815A5
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2815A5#FFFFFF#000000##FFFFFF
##2815A51.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA9
Deuteranopia (green-blind)
#002FA3
Tritanopia (blue-blind)
#004661
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2815a5;
/* rgb */ color: rgb(40, 21, 165);
/* oklch */ color: oklch(35.7% 0.207 274.0);
Tailwind
colors: {
  custom: {
    50: '#795ac1',
    500: '#2815a5',
    950: '#000000',
  },
}
SCSS
$custom: #2815a5;
$custom-light: #795ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#2815a5",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 165
  },
  "hsl": {
    "h": 247.917,
    "s": 77.419,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.20713,
    "h": 274
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#2815A5
secondary
#B9CA4C
accent
#F434DB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #2815A5

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

Preview Lab → · Contrast checker → · Palette generator →

#2815A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva