#2C20A2#2C20A2

#2C20A2 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.195 H 275.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2C20A2
RGBrgb(44, 32, 162)
HSLhsl(246, 67%, 38%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(72.8%, 80.2%, 0%, 36.5%)
CIE-LABlab(24.25, 46.33, -67.03)
CIE-LCHlch(24.25, 81.48, 304.65°)
OKLaboklab(36.74% 0.0173 -0.1938)
OKLCHoklch(36.74% 0.195 275.1)
XYZxyz(8.0747, 4.1763, 34.5560)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C20A2 #96A220
analogous
#2055A2 #2C20A2 #6D20A2
triadic
#2C20A2 #A22C20 #20A22C
tetradic
#2C20A2 #A22055 #96A220 #20A26D
square
#2C20A2 #A22055 #96A220 #20A26D
split-complementary
#2C20A2 #A26D20 #55A220
monochromatic
#100C3C #1E166F #2C20A2 #3A2AD5 #695DDF

Accessibility & contrast

On white

11.44
#2C20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C20A2
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C20A2#FFFFFF#000000##FFFFFF
##2C20A21.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA6
Deuteranopia (green-blind)
#0034A0
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c20a2;
/* rgb */ color: rgb(44, 32, 162);
/* oklch */ color: oklch(36.7% 0.195 275.1);
Tailwind
colors: {
  custom: {
    50: '#795fbf',
    500: '#2c20a2',
    950: '#000000',
  },
}
SCSS
$custom: #2c20a2;
$custom-light: #795fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c20a2",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 245.538,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.36736,
    "c": 0.1946,
    "h": 275.1
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#2C20A2
secondary
#BAC35A
accent
#EA3EDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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