#2C21AD#2C21AD

#2C21AD is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.207 H 273.9°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#2C21AD
RGBrgb(44, 33, 173)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 68%)
CMYKcmyk(74.6%, 80.9%, 0%, 32.2%)
CIE-LABlab(25.68, 49.27, -71.31)
CIE-LCHlch(25.68, 86.67, 304.64°)
OKLaboklab(38.1% 0.0141 -0.2062)
OKLCHoklch(38.1% 0.207 273.9)
XYZxyz(9.1229, 4.6394, 39.9418)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21AD #A2AD21
analogous
#215CAD #2C21AD #7221AD
triadic
#2C21AD #AD2C21 #21AD2C
tetradic
#2C21AD #AD215C #A2AD21 #21AD72
square
#2C21AD #AD215C #A2AD21 #21AD72
split-complementary
#2C21AD #AD7221 #5CAD21
monochromatic
#120D46 #1F177A #2C21AD #4033D8 #7066E2

Accessibility & contrast

On white

10.89
#2C21AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2C21AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C21AD
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21AD#FFFFFF#000000##FFFFFF
##2C21AD1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B1
Deuteranopia (green-blind)
#0036AB
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c21ad;
/* rgb */ color: rgb(44, 33, 173);
/* oklch */ color: oklch(38.1% 0.207 273.9);
Tailwind
colors: {
  custom: {
    50: '#7b60c7',
    500: '#2c21ad',
    950: '#000000',
  },
}
SCSS
$custom: #2c21ad;
$custom-light: #7b60c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21ad",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 244.714,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38104,
    "c": 0.20673,
    "h": 273.9
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#2C21AD
secondary
#BFC762
accent
#EB3DDD
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C21AD

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

Preview Lab → · Contrast checker → · Palette generator →

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