#2D21BB#2D21BB

#2D21BB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.8% C 0.223 H 273.0°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#2D21BB
RGBrgb(45, 33, 187)
HSLhsl(245, 70%, 43%)
HSVhsv(245, 82%, 73%)
CMYKcmyk(75.9%, 82.4%, 0%, 26.7%)
CIE-LABlab(27.39, 53.61, -76.83)
CIE-LCHlch(27.39, 93.69, 304.90°)
OKLaboklab(39.78% 0.0118 -0.2222)
OKLCHoklch(39.78% 0.223 273)
XYZxyz(10.5927, 5.2323, 47.4558)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21BB #AFBB21
analogous
#2162BB #2D21BB #7A21BB
triadic
#2D21BB #BB2D21 #21BB2D
tetradic
#2D21BB #BB2162 #AFBB21 #21BB7A
square
#2D21BB #BB2162 #AFBB21 #21BB7A
split-complementary
#2D21BB #BB7A21 #62BB21
monochromatic
#140F53 #201887 #2D21BB #493DDD #7A71E6

Accessibility & contrast

On white

10.26
#2D21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21BB
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21BB#FFFFFF#000000##FFFFFF
##2D21BB1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005370
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d21bb;
/* rgb */ color: rgb(45, 33, 187);
/* oklch */ color: oklch(39.8% 0.223 273.0);
Tailwind
colors: {
  custom: {
    50: '#7f61d1',
    500: '#2d21bb',
    950: '#000000',
  },
}
SCSS
$custom: #2d21bb;
$custom-light: #7f61d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21bb",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 244.675,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39777,
    "c": 0.22256,
    "h": 273
  },
  "luminance": 0.05233
}

Semantic roles & 50–950 ramp

primary
#2D21BB
secondary
#C5CC6B
accent
#ED3BDF
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2D21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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