#2D15B4#2D15B4

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

Color values

HEX#2D15B4
RGBrgb(45, 21, 180)
HSLhsl(249, 79%, 39%)
HSVhsv(249, 88%, 71%)
CMYKcmyk(75%, 88.3%, 0%, 29.4%)
CIE-LABlab(24.92, 56.37, -76.77)
CIE-LCHlch(24.92, 95.25, 306.29°)
OKLaboklab(37.84% 0.0167 -0.2218)
OKLCHoklch(37.84% 0.222 274.3)
XYZxyz(9.5858, 4.3885, 43.5130)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D15B4 #9CB415
analogous
#154CB4 #2D15B4 #7D15B4
triadic
#2D15B4 #B42D15 #15B42D
tetradic
#2D15B4 #B4154C #9CB415 #15B47D
square
#2D15B4 #B4154C #9CB415 #15B47D
split-complementary
#2D15B4 #B47D15 #4CB415
monochromatic
#120846 #1F0F7D #2D15B4 #3F21E5 #6E58EC

Accessibility & contrast

On white

11.18
#2D15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D15B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D15B4
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D15B4#FFFFFF#000000##FFFFFF
##2D15B41.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.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: #2d15b4;
/* rgb */ color: rgb(45, 21, 180);
/* oklch */ color: oklch(37.8% 0.222 274.3);
Tailwind
colors: {
  custom: {
    50: '#7e5bcc',
    500: '#2d15b4',
    950: '#000000',
  },
}
SCSS
$custom: #2d15b4;
$custom-light: #7e5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d15b4",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 249.057,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37839,
    "c": 0.22247,
    "h": 274.3
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#2D15B4
secondary
#BCCF56
accent
#F632D8
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2D15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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