#2C20A5#2C20A5

#2C20A5 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.198 H 274.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#2C20A5
RGBrgb(44, 32, 165)
HSLhsl(245, 68%, 39%)
HSVhsv(245, 81%, 65%)
CMYKcmyk(73.3%, 80.6%, 0%, 35.3%)
CIE-LABlab(24.59, 47.27, -68.28)
CIE-LCHlch(24.59, 83.05, 304.69°)
OKLaboklab(37.08% 0.0165 -0.1975)
OKLCHoklch(37.08% 0.198 274.8)
XYZxyz(8.3445, 4.2843, 35.9772)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C20A5 #99A520
analogous
#2056A5 #2C20A5 #6E20A5
triadic
#2C20A5 #A52C20 #20A52C
tetradic
#2C20A5 #A52056 #99A520 #20A56E
square
#2C20A5 #A52056 #99A520 #20A56E
split-complementary
#2C20A5 #A56E20 #56A520
monochromatic
#110C3E #1E1672 #2C20A5 #3B2CD6 #6B5FE0

Accessibility & contrast

On white

11.31
#2C20A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C20A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C20A5
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C20A5#FFFFFF#000000##FFFFFF
##2C20A51.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c20a5;
/* rgb */ color: rgb(44, 32, 165);
/* oklch */ color: oklch(37.1% 0.198 274.8);
Tailwind
colors: {
  custom: {
    50: '#795fc1',
    500: '#2c20a5',
    950: '#000000',
  },
}
SCSS
$custom: #2c20a5;
$custom-light: #795fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c20a5",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 165
  },
  "hsl": {
    "h": 245.414,
    "s": 67.513,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37076,
    "c": 0.19816,
    "h": 274.8
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#2C20A5
secondary
#BBC55C
accent
#EA3DDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C20A5

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

Preview Lab → · Contrast checker → · Palette generator →

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