#2815A0#2815A0

#2815A0 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 35.1% C 0.201 H 274.6°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2815A0
RGBrgb(40, 21, 160)
HSLhsl(248, 77%, 35%)
HSVhsv(248, 87%, 63%)
CMYKcmyk(75%, 86.9%, 0%, 37.3%)
CIE-LABlab(22.03, 50.39, -69.49)
CIE-LCHlch(22.03, 85.84, 305.95°)
OKLaboklab(35.07% 0.016 -0.2008)
OKLCHoklch(35.07% 0.201 274.6)
XYZxyz(7.4863, 3.5248, 33.5367)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2815A0 #8DA015
analogous
#1548A0 #2815A0 #6D15A0
triadic
#2815A0 #A02815 #15A028
tetradic
#2815A0 #A01548 #8DA015 #15A06D
square
#2815A0 #A01548 #8DA015 #15A06D
split-complementary
#2815A0 #A06D15 #48A015
monochromatic
#0D0734 #1A0E6A #2815A0 #361CD6 #5E48E7

Accessibility & contrast

On white

12.32
#2815A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2815A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2815A0
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2815A0#FFFFFF#000000##FFFFFF
##2815A01.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2815a0;
/* rgb */ color: rgb(40, 21, 160);
/* oklch */ color: oklch(35.1% 0.201 274.6);
Tailwind
colors: {
  custom: {
    50: '#7859be',
    500: '#2815a0',
    950: '#000000',
  },
}
SCSS
$custom: #2815a0;
$custom-light: #7859be;
$custom-dark: #000000;
JSON
{
  "hex": "#2815a0",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 160
  },
  "hsl": {
    "h": 248.201,
    "s": 76.796,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35065,
    "c": 0.20149,
    "h": 274.6
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#2815A0
secondary
#B7C849
accent
#F334D9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2815A0

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

Preview Lab → · Contrast checker → · Palette generator →

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