#2B15B3#2B15B3

#2B15B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.6% C 0.222 H 273.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2B15B3
RGBrgb(43, 21, 179)
HSLhsl(248, 79%, 39%)
HSVhsv(248, 88%, 70%)
CMYKcmyk(76%, 88.3%, 0%, 29.8%)
CIE-LABlab(24.65, 55.99, -76.62)
CIE-LCHlch(24.65, 94.90, 306.16°)
OKLaboklab(37.59% 0.0143 -0.2214)
OKLCHoklch(37.59% 0.222 273.7)
XYZxyz(9.3984, 4.3036, 42.9744)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B15B3 #9DB315
analogous
#154EB3 #2B15B3 #7A15B3
triadic
#2B15B3 #B32B15 #15B32B
tetradic
#2B15B3 #B3154E #9DB315 #15B37A
square
#2B15B3 #B3154E #9DB315 #15B37A
split-complementary
#2B15B3 #B37A15 #4EB315
monochromatic
#110845 #1E0F7C #2B15B3 #3C20E5 #6C57EB

Accessibility & contrast

On white

11.28
#2B15B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B15B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B15B3
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B15B3#FFFFFF#000000##FFFFFF
##2B15B31.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b15b3;
/* rgb */ color: rgb(43, 21, 179);
/* oklch */ color: oklch(37.6% 0.222 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d5bcb',
    500: '#2b15b3',
    950: '#000000',
  },
}
SCSS
$custom: #2b15b3;
$custom-light: #7d5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b15b3",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 179
  },
  "hsl": {
    "h": 248.354,
    "s": 79,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37587,
    "c": 0.22189,
    "h": 273.7
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#2B15B3
secondary
#BDCE56
accent
#F532DA
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2B15B3

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

Preview Lab → · Contrast checker → · Palette generator →

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