#2815B4#2815B4

#2815B4 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.224 H 272.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2815B4
RGBrgb(40, 21, 180)
HSLhsl(247, 79%, 39%)
HSVhsv(247, 88%, 71%)
CMYKcmyk(77.8%, 88.3%, 0%, 29.4%)
CIE-LABlab(24.58, 56.13, -77.34)
CIE-LCHlch(24.58, 95.56, 305.97°)
OKLaboklab(37.52% 0.01 -0.2235)
OKLCHoklch(37.52% 0.224 272.6)
XYZxyz(9.3787, 4.2817, 43.5033)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2815B4 #A1B415
analogous
#1552B4 #2815B4 #7815B4
triadic
#2815B4 #B42815 #15B428
tetradic
#2815B4 #B41552 #A1B415 #15B478
square
#2815B4 #B41552 #A1B415 #15B478
split-complementary
#2815B4 #B47815 #52B415
monochromatic
#100846 #1C0F7D #2815B4 #3921E5 #6A58EC

Accessibility & contrast

On white

11.31
#2815B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2815B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2815B4
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2815B4#FFFFFF#000000##FFFFFF
##2815B41.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2815b4;
/* rgb */ color: rgb(40, 21, 180);
/* oklch */ color: oklch(37.5% 0.224 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c5bcc',
    500: '#2815b4',
    950: '#000000',
  },
}
SCSS
$custom: #2815b4;
$custom-light: #7c5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2815b4",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 247.17,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.22377,
    "h": 272.6
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#2815B4
secondary
#C0CF56
accent
#F632DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2815B4

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

Preview Lab → · Contrast checker → · Palette generator →

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