#2C20A4#2C20A4

#2C20A4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 37.0% C 0.197 H 274.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2C20A4
RGBrgb(44, 32, 164)
HSLhsl(245, 67%, 38%)
HSVhsv(245, 80%, 64%)
CMYKcmyk(73.2%, 80.5%, 0%, 35.7%)
CIE-LABlab(24.47, 46.95, -67.87)
CIE-LCHlch(24.47, 82.53, 304.68°)
OKLaboklab(36.96% 0.0168 -0.1963)
OKLCHoklch(36.96% 0.197 274.9)
XYZxyz(8.2538, 4.2480, 35.4997)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C20A4 #98A420
analogous
#2056A4 #2C20A4 #6E20A4
triadic
#2C20A4 #A42C20 #20A42C
tetradic
#2C20A4 #A42056 #98A420 #20A46E
square
#2C20A4 #A42056 #98A420 #20A46E
split-complementary
#2C20A4 #A46E20 #56A420
monochromatic
#110C3E #1E1671 #2C20A4 #3B2BD6 #6A5FE0

Accessibility & contrast

On white

11.35
#2C20A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C20A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C20A4
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C20A4#FFFFFF#000000##FFFFFF
##2C20A41.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c20a4;
/* rgb */ color: rgb(44, 32, 164);
/* oklch */ color: oklch(37.0% 0.197 274.9);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2c20a4',
    950: '#000000',
  },
}
SCSS
$custom: #2c20a4;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c20a4",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 164
  },
  "hsl": {
    "h": 245.455,
    "s": 67.347,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36962,
    "c": 0.19697,
    "h": 274.9
  },
  "luminance": 0.04249
}

Semantic roles & 50–950 ramp

primary
#2C20A4
secondary
#BBC45C
accent
#EA3EDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C20A4

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

Preview Lab → · Contrast checker → · Palette generator →

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