#2C20AB#2C20AB

#2C20AB is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.205 H 274.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2C20AB
RGBrgb(44, 32, 171)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(74.3%, 81.3%, 0%, 32.9%)
CIE-LABlab(25.28, 49.13, -70.76)
CIE-LCHlch(25.28, 86.14, 304.77°)
OKLaboklab(37.76% 0.0149 -0.2046)
OKLCHoklch(37.76% 0.205 274.2)
XYZxyz(8.9035, 4.5079, 38.9211)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C20AB #9FAB20
analogous
#2059AB #2C20AB #7220AB
triadic
#2C20AB #AB2C20 #20AB2C
tetradic
#2C20AB #AB2059 #9FAB20 #20AB72
square
#2C20AB #AB2059 #9FAB20 #20AB72
split-complementary
#2C20AB #AB7220 #59AB20
monochromatic
#110D44 #1F1677 #2C20AB #3E30D8 #6E63E2

Accessibility & contrast

On white

11.04
#2C20AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2C20AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C20AB
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C20AB#FFFFFF#000000##FFFFFF
##2C20AB1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AF
Deuteranopia (green-blind)
#0035A9
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c20ab;
/* rgb */ color: rgb(44, 32, 171);
/* oklch */ color: oklch(37.8% 0.205 274.2);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2c20ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c20ab;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c20ab",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 171
  },
  "hsl": {
    "h": 245.18,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.3776,
    "c": 0.20519,
    "h": 274.2
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#2C20AB
secondary
#BEC760
accent
#EB3CDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C20AB

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

Preview Lab → · Contrast checker → · Palette generator →

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