#2D21B3#2D21B3

#2D21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.213 H 273.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#2D21B3
RGBrgb(45, 33, 179)
HSLhsl(245, 69%, 42%)
HSVhsv(245, 82%, 70%)
CMYKcmyk(74.9%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.45, 51.18, -73.63)
CIE-LCHlch(26.45, 89.67, 304.80°)
OKLaboklab(38.85% 0.0138 -0.213)
OKLCHoklch(38.85% 0.213 273.7)
XYZxyz(9.7600, 4.8993, 43.0704)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21B3 #A7B321
analogous
#215EB3 #2D21B3 #7621B3
triadic
#2D21B3 #B32D21 #21B32D
tetradic
#2D21B3 #B3215E #A7B321 #21B376
square
#2D21B3 #B3215E #A7B321 #21B376
split-complementary
#2D21B3 #B37621 #5EB321
monochromatic
#130E4C #20177F #2D21B3 #4437DA #756BE4

Accessibility & contrast

On white

10.61
#2D21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21B3
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21B3#FFFFFF#000000##FFFFFF
##2D21B31.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d21b3;
/* rgb */ color: rgb(45, 33, 179);
/* oklch */ color: oklch(38.9% 0.213 273.7);
Tailwind
colors: {
  custom: {
    50: '#7d61cb',
    500: '#2d21b3',
    950: '#000000',
  },
}
SCSS
$custom: #2d21b3;
$custom-light: #7d61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21b3",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 244.932,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38854,
    "c": 0.21343,
    "h": 273.7
  },
  "luminance": 0.049
}

Semantic roles & 50–950 ramp

primary
#2D21B3
secondary
#C1CA66
accent
#EC3CDD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2D21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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