#2C21AA#2C21AA

#2C21AA is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.203 H 274.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2C21AA
RGBrgb(44, 33, 170)
HSLhsl(245, 67%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(74.1%, 80.6%, 0%, 33.3%)
CIE-LABlab(25.34, 48.33, -70.07)
CIE-LCHlch(25.34, 85.13, 304.60°)
OKLaboklab(37.76% 0.0148 -0.2027)
OKLCHoklch(37.76% 0.203 274.2)
XYZxyz(8.8359, 4.5246, 38.4301)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21AA #9FAA21
analogous
#215AAA #2C21AA #7121AA
triadic
#2C21AA #AA2C21 #21AA2C
tetradic
#2C21AA #AA215A #9FAA21 #21AA71
square
#2C21AA #AA215A #9FAA21 #21AA71
split-complementary
#2C21AA #AA7121 #5AAA21
monochromatic
#110D43 #1F1777 #2C21AA #3E31D7 #6E64E1

Accessibility & contrast

On white

11.02
#2C21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C21AA
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21AA#FFFFFF#000000##FFFFFF
##2C21AA1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0036A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c21aa;
/* rgb */ color: rgb(44, 33, 170);
/* oklch */ color: oklch(37.8% 0.203 274.2);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2c21aa',
    950: '#000000',
  },
}
SCSS
$custom: #2c21aa;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21aa",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 244.818,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37762,
    "c": 0.20322,
    "h": 274.2
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#2C21AA
secondary
#BEC661
accent
#EA3DDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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