#2B15B4#2B15B4

#2B15B4 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.7% C 0.223 H 273.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2B15B4
RGBrgb(43, 21, 180)
HSLhsl(248, 79%, 39%)
HSVhsv(248, 88%, 71%)
CMYKcmyk(76.1%, 88.3%, 0%, 29.4%)
CIE-LABlab(24.78, 56.27, -77.00)
CIE-LCHlch(24.78, 95.37, 306.16°)
OKLaboklab(37.71% 0.014 -0.2225)
OKLCHoklch(37.71% 0.223 273.6)
XYZxyz(9.4999, 4.3442, 43.5090)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B15B4 #9EB415
analogous
#154FB4 #2B15B4 #7B15B4
triadic
#2B15B4 #B42B15 #15B42B
tetradic
#2B15B4 #B4154F #9EB415 #15B47B
square
#2B15B4 #B4154F #9EB415 #15B47B
split-complementary
#2B15B4 #B47B15 #4FB415
monochromatic
#110846 #1E0F7D #2B15B4 #3C21E5 #6C58EC

Accessibility & contrast

On white

11.24
#2B15B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B15B4
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B15B4#FFFFFF#000000##FFFFFF
##2B15B41.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b15b4;
/* rgb */ color: rgb(43, 21, 180);
/* oklch */ color: oklch(37.7% 0.223 273.6);
Tailwind
colors: {
  custom: {
    50: '#7d5bcc',
    500: '#2b15b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b15b4;
$custom-light: #7d5bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b15b4",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 180
  },
  "hsl": {
    "h": 248.302,
    "s": 79.104,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37709,
    "c": 0.22299,
    "h": 273.6
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#2B15B4
secondary
#BECF56
accent
#F632DB
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2B15B4

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

Preview Lab → · Contrast checker → · Palette generator →

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