#2D21B2#2D21B2

#2D21B2 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.7% C 0.212 H 273.8°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#2D21B2
RGBrgb(45, 33, 178)
HSLhsl(245, 69%, 41%)
HSVhsv(245, 81%, 70%)
CMYKcmyk(74.7%, 81.5%, 0%, 30.2%)
CIE-LABlab(26.33, 50.88, -73.23)
CIE-LCHlch(26.33, 89.17, 304.79°)
OKLaboklab(38.74% 0.0141 -0.2118)
OKLCHoklch(38.74% 0.212 273.8)
XYZxyz(9.6593, 4.8590, 42.5397)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21B2 #A6B221
analogous
#215DB2 #2D21B2 #7621B2
triadic
#2D21B2 #B22D21 #21B22D
tetradic
#2D21B2 #B2215D #A6B221 #21B276
square
#2D21B2 #B2215D #A6B221 #21B276
split-complementary
#2D21B2 #B27621 #5DB221
monochromatic
#130E4B #20177E #2D21B2 #4436DA #746AE3

Accessibility & contrast

On white

10.65
#2D21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2D21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21B2
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21B2#FFFFFF#000000##FFFFFF
##2D21B21.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B6
Deuteranopia (green-blind)
#0037B0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d21b2;
/* rgb */ color: rgb(45, 33, 178);
/* oklch */ color: oklch(38.7% 0.212 273.8);
Tailwind
colors: {
  custom: {
    50: '#7d61ca',
    500: '#2d21b2',
    950: '#000000',
  },
}
SCSS
$custom: #2d21b2;
$custom-light: #7d61ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21b2",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 244.966,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38739,
    "c": 0.21227,
    "h": 273.8
  },
  "luminance": 0.0486
}

Semantic roles & 50–950 ramp

primary
#2D21B2
secondary
#C1C966
accent
#EC3CDD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2D21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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