#2815B3#2815B3

#2815B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.4% C 0.223 H 272.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2815B3
RGBrgb(40, 21, 179)
HSLhsl(247, 79%, 39%)
HSVhsv(247, 88%, 70%)
CMYKcmyk(77.7%, 88.3%, 0%, 29.8%)
CIE-LABlab(24.45, 55.85, -76.95)
CIE-LCHlch(24.45, 95.08, 305.97°)
OKLaboklab(37.4% 0.0103 -0.2224)
OKLCHoklch(37.4% 0.223 272.6)
XYZxyz(9.2772, 4.2411, 42.9688)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2815B3 #A0B315
analogous
#1551B3 #2815B3 #7715B3
triadic
#2815B3 #B32815 #15B328
tetradic
#2815B3 #B31551 #A0B315 #15B377
square
#2815B3 #B31551 #A0B315 #15B377
split-complementary
#2815B3 #B37715 #51B315
monochromatic
#100845 #1C0F7C #2815B3 #3820E5 #6957EB

Accessibility & contrast

On white

11.36
#2815B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2815B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2815B3
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2815B3#FFFFFF#000000##FFFFFF
##2815B31.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B7
Deuteranopia (green-blind)
#0032B0
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2815b3;
/* rgb */ color: rgb(40, 21, 179);
/* oklch */ color: oklch(37.4% 0.223 272.6);
Tailwind
colors: {
  custom: {
    50: '#7c5bcb',
    500: '#2815b3',
    950: '#000000',
  },
}
SCSS
$custom: #2815b3;
$custom-light: #7c5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2815b3",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 247.215,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.374,
    "c": 0.22268,
    "h": 272.6
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#2815B3
secondary
#C0CE56
accent
#F532DE
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2815B3

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

Preview Lab → · Contrast checker → · Palette generator →

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