#2C20A3#2C20A3

#2C20A3 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.196 H 275.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2C20A3
RGBrgb(44, 32, 163)
HSLhsl(245, 67%, 38%)
HSVhsv(245, 80%, 64%)
CMYKcmyk(73%, 80.4%, 0%, 36.1%)
CIE-LABlab(24.36, 46.64, -67.45)
CIE-LCHlch(24.36, 82.01, 304.66°)
OKLaboklab(36.85% 0.017 -0.195)
OKLCHoklch(36.85% 0.196 275)
XYZxyz(8.1639, 4.2120, 35.0260)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C20A3 #97A320
analogous
#2055A3 #2C20A3 #6D20A3
triadic
#2C20A3 #A32C20 #20A32C
tetradic
#2C20A3 #A32055 #97A320 #20A36D
square
#2C20A3 #A32055 #97A320 #20A36D
split-complementary
#2C20A3 #A36D20 #55A320
monochromatic
#100C3D #1E1670 #2C20A3 #3A2BD5 #6A5EDF

Accessibility & contrast

On white

11.40
#2C20A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C20A3
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C20A3#FFFFFF#000000##FFFFFF
##2C20A31.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A7
Deuteranopia (green-blind)
#0034A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c20a3;
/* rgb */ color: rgb(44, 32, 163);
/* oklch */ color: oklch(36.8% 0.196 275.0);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2c20a3',
    950: '#000000',
  },
}
SCSS
$custom: #2c20a3;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c20a3",
  "rgb": {
    "r": 44,
    "g": 32,
    "b": 163
  },
  "hsl": {
    "h": 245.496,
    "s": 67.179,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.19579,
    "h": 275
  },
  "luminance": 0.04213
}

Semantic roles & 50–950 ramp

primary
#2C20A3
secondary
#BAC45B
accent
#EA3EDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C20A3

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

Preview Lab → · Contrast checker → · Palette generator →

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