#2C21A5#2C21A5

#2C21A5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.197 H 274.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2C21A5
RGBrgb(44, 33, 165)
HSLhsl(245, 67%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(73.3%, 80%, 0%, 35.3%)
CIE-LABlab(24.76, 46.77, -68.00)
CIE-LCHlch(24.76, 82.53, 304.52°)
OKLaboklab(37.2% 0.0161 -0.1967)
OKLCHoklch(37.2% 0.197 274.7)
XYZxyz(8.3718, 4.3390, 35.9863)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C21A5 #9AA521
analogous
#2158A5 #2C21A5 #6E21A5
triadic
#2C21A5 #A52C21 #21A52C
tetradic
#2C21A5 #A52158 #9AA521 #21A56E
square
#2C21A5 #A52158 #9AA521 #21A56E
split-complementary
#2C21A5 #A56E21 #58A521
monochromatic
#110D3F #1E1772 #2C21A5 #3C2ED5 #6C61DF

Accessibility & contrast

On white

11.24
#2C21A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C21A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C21A5
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C21A5#FFFFFF#000000##FFFFFF
##2C21A51.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c21a5;
/* rgb */ color: rgb(44, 33, 165);
/* oklch */ color: oklch(37.2% 0.197 274.7);
Tailwind
colors: {
  custom: {
    50: '#7960c1',
    500: '#2c21a5',
    950: '#000000',
  },
}
SCSS
$custom: #2c21a5;
$custom-light: #7960c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c21a5",
  "rgb": {
    "r": 44,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 245,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37195,
    "c": 0.19732,
    "h": 274.7
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#2C21A5
secondary
#BCC45E
accent
#EA3EDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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