#2C21AB#2C21AB

#2C21AB is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.204 H 274.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2C21AB
RGBrgb(44, 33, 171)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(74.3%, 80.7%, 0%, 32.9%)
CIE-LABlab(25.45, 48.65, -70.48)
CIE-LCHlch(25.45, 85.64, 304.61°)
OKLaboklab(37.88% 0.0146 -0.2039)
OKLCHoklch(37.88% 0.204 274.1)
XYZxyz(8.9308, 4.5626, 38.9302)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21AB #A0AB21
analogous
#215BAB #2C21AB #7121AB
triadic
#2C21AB #AB2C21 #21AB2C
tetradic
#2C21AB #AB215B #A0AB21 #21AB71
square
#2C21AB #AB215B #A0AB21 #21AB71
split-complementary
#2C21AB #AB7121 #5BAB21
monochromatic
#120D44 #1F1778 #2C21AB #3F32D7 #6F65E1

Accessibility & contrast

On white

10.98
#2C21AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C21AB
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21AB#FFFFFF#000000##FFFFFF
##2C21AB1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0036A9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c21ab;
/* rgb */ color: rgb(44, 33, 171);
/* oklch */ color: oklch(37.9% 0.204 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2c21ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c21ab;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21ab",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 244.783,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.20439,
    "h": 274.1
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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