#2C21AC#2C21AC

#2C21AC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.206 H 274.0°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2C21AC
RGBrgb(44, 33, 172)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(74.4%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.57, 48.96, -70.90)
CIE-LCHlch(25.57, 86.16, 304.63°)
OKLaboklab(37.99% 0.0143 -0.2051)
OKLCHoklch(37.99% 0.206 274)
XYZxyz(9.0265, 4.6008, 39.4341)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21AC #A1AC21
analogous
#215CAC #2C21AC #7121AC
triadic
#2C21AC #AC2C21 #21AC2C
tetradic
#2C21AC #AC215C #A1AC21 #21AC71
square
#2C21AC #AC215C #A1AC21 #21AC71
split-complementary
#2C21AC #AC7121 #5CAC21
monochromatic
#120D45 #1F1779 #2C21AC #4032D8 #7066E2

Accessibility & contrast

On white

10.94
#2C21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2C21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C21AC
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21AC#FFFFFF#000000##FFFFFF
##2C21AC1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0036AA
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c21ac;
/* rgb */ color: rgb(44, 33, 172);
/* oklch */ color: oklch(38.0% 0.206 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b60c6',
    500: '#2c21ac',
    950: '#000000',
  },
}
SCSS
$custom: #2c21ac;
$custom-light: #7b60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21ac",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 244.748,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37989,
    "c": 0.20556,
    "h": 274
  },
  "luminance": 0.04602
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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