#2D21C2#2D21C2

#2D21C2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.6% C 0.230 H 272.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#2D21C2
RGBrgb(45, 33, 194)
HSLhsl(244, 71%, 45%)
HSVhsv(244, 83%, 76%)
CMYKcmyk(76.8%, 83%, 0%, 23.9%)
CIE-LABlab(28.22, 55.69, -79.59)
CIE-LCHlch(28.22, 97.14, 304.98°)
OKLaboklab(40.59% 0.01 -0.2302)
OKLCHoklch(40.59% 0.23 272.5)
XYZxyz(11.3604, 5.5394, 51.4990)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21C2 #B6C221
analogous
#2166C2 #2D21C2 #7E21C2
triadic
#2D21C2 #C22D21 #21C22D
tetradic
#2D21C2 #C22166 #B6C221 #21C27E
square
#2D21C2 #C22166 #B6C221 #21C27E
split-complementary
#2D21C2 #C27E21 #66C221
monochromatic
#150F59 #21188E #2D21C2 #4D41DF #7E76E8

Accessibility & contrast

On white

9.96
#2D21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2D21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21C2
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21C2#FFFFFF#000000##FFFFFF
##2D21C21.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003BBF
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d21c2;
/* rgb */ color: rgb(45, 33, 194);
/* oklch */ color: oklch(40.6% 0.230 272.5);
Tailwind
colors: {
  custom: {
    50: '#8162d6',
    500: '#2d21c2',
    950: '#000000',
  },
}
SCSS
$custom: #2d21c2;
$custom-light: #8162d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21c2",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 244.472,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40591,
    "c": 0.23045,
    "h": 272.5
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#2D21C2
secondary
#C8CF70
accent
#EE3AE0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2D21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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