#2C21B0#2C21B0

#2C21B0 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.4% C 0.210 H 273.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2C21B0
RGBrgb(44, 33, 176)
HSLhsl(245, 68%, 41%)
HSVhsv(245, 81%, 69%)
CMYKcmyk(75%, 81.3%, 0%, 31%)
CIE-LABlab(26.03, 50.19, -72.53)
CIE-LCHlch(26.03, 88.20, 304.69°)
OKLaboklab(38.45% 0.0133 -0.2098)
OKLCHoklch(38.45% 0.21 273.6)
XYZxyz(9.4164, 4.7568, 41.4878)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21B0 #A5B021
analogous
#215EB0 #2C21B0 #7321B0
triadic
#2C21B0 #B02C21 #21B02C
tetradic
#2C21B0 #B0215E #A5B021 #21B073
square
#2C21B0 #B0215E #A5B021 #21B073
split-complementary
#2C21B0 #B07321 #5EB021
monochromatic
#120E49 #1F177C #2C21B0 #4235D9 #7269E3

Accessibility & contrast

On white

10.76
#2C21B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C21B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C21B0
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21B0#FFFFFF#000000##FFFFFF
##2C21B01.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B4
Deuteranopia (green-blind)
#0037AE
Tritanopia (blue-blind)
#004E69
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c21b0;
/* rgb */ color: rgb(44, 33, 176);
/* oklch */ color: oklch(38.4% 0.210 273.6);
Tailwind
colors: {
  custom: {
    50: '#7c61c9',
    500: '#2c21b0',
    950: '#000000',
  },
}
SCSS
$custom: #2c21b0;
$custom-light: #7c61c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21b0",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 176
  },
  "hsl": {
    "h": 244.615,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38447,
    "c": 0.21021,
    "h": 273.6
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#2C21B0
secondary
#C1C864
accent
#EB3DDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C21B0

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

Preview Lab → · Contrast checker → · Palette generator →

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