#2C15B4#2C15B4

#2C15B4 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.8% C 0.223 H 273.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2C15B4
RGBrgb(44, 21, 180)
HSLhsl(249, 79%, 39%)
HSVhsv(249, 88%, 71%)
CMYKcmyk(75.6%, 88.3%, 0%, 29.4%)
CIE-LABlab(24.85, 56.32, -76.89)
CIE-LCHlch(24.85, 95.31, 306.22°)
OKLaboklab(37.77% 0.0153 -0.2222)
OKLCHoklch(37.77% 0.223 273.9)
XYZxyz(9.5424, 4.3661, 43.5110)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C15B4 #9DB415
analogous
#154EB4 #2C15B4 #7B15B4
triadic
#2C15B4 #B42C15 #15B42C
tetradic
#2C15B4 #B4154E #9DB415 #15B47B
square
#2C15B4 #B4154E #9DB415 #15B47B
split-complementary
#2C15B4 #B47B15 #4EB415
monochromatic
#110846 #1F0F7D #2C15B4 #3D21E5 #6D58EC

Accessibility & contrast

On white

11.21
#2C15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C15B4
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C15B4#FFFFFF#000000##FFFFFF
##2C15B41.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0034B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c15b4;
/* rgb */ color: rgb(44, 21, 180);
/* oklch */ color: oklch(37.8% 0.223 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e5bcc',
    500: '#2c15b4',
    950: '#000000',
  },
}
SCSS
$custom: #2c15b4;
$custom-light: #7e5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c15b4",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 248.679,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.22273,
    "h": 273.9
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#2C15B4
secondary
#BDCF56
accent
#F632D9
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2C15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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