#2D20A4#2D20A4

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

Color values

HEX#2D20A4
RGBrgb(45, 32, 164)
HSLhsl(246, 67%, 38%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(72.6%, 80.5%, 0%, 35.7%)
CIE-LABlab(24.55, 47.04, -67.75)
CIE-LCHlch(24.55, 82.48, 304.77°)
OKLaboklab(37.03% 0.0181 -0.1959)
OKLCHoklch(37.03% 0.197 275.3)
XYZxyz(8.2973, 4.2704, 35.5018)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20A4 #97A420
analogous
#2055A4 #2D20A4 #6F20A4
triadic
#2D20A4 #A42D20 #20A42D
tetradic
#2D20A4 #A42055 #97A420 #20A46F
square
#2D20A4 #A42055 #97A420 #20A46F
split-complementary
#2D20A4 #A46F20 #55A420
monochromatic
#110C3E #1F1671 #2D20A4 #3C2BD6 #6B5FE0

Accessibility & contrast

On white

11.33
#2D20A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D20A4
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20A4#FFFFFF#000000##FFFFFF
##2D20A41.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.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: #2d20a4;
/* rgb */ color: rgb(45, 32, 164);
/* oklch */ color: oklch(37.0% 0.197 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a5fc0',
    500: '#2d20a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d20a4;
$custom-light: #7a5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20a4",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 164
  },
  "hsl": {
    "h": 245.909,
    "s": 67.347,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3703,
    "c": 0.19672,
    "h": 275.3
  },
  "luminance": 0.04271
}

Semantic roles & 50–950 ramp

primary
#2D20A4
secondary
#BAC45C
accent
#EA3ED9
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D20A4

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

Preview Lab → · Contrast checker → · Palette generator →

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