#2D20AB#2D20AB

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

Color values

HEX#2D20AB
RGBrgb(45, 32, 171)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(73.7%, 81.3%, 0%, 32.9%)
CIE-LABlab(25.35, 49.21, -70.65)
CIE-LCHlch(25.35, 86.09, 304.86°)
OKLaboklab(37.82% 0.0163 -0.2043)
OKLCHoklch(37.82% 0.205 274.5)
XYZxyz(8.9470, 4.5303, 38.9231)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D20AB #9EAB20
analogous
#2058AB #2D20AB #7320AB
triadic
#2D20AB #AB2D20 #20AB2D
tetradic
#2D20AB #AB2058 #9EAB20 #20AB73
square
#2D20AB #AB2058 #9EAB20 #20AB73
split-complementary
#2D20AB #AB7320 #58AB20
monochromatic
#120D44 #1F1677 #2D20AB #4030D8 #6F63E2

Accessibility & contrast

On white

11.02
#2D20AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D20AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D20AB
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D20AB#FFFFFF#000000##FFFFFF
##2D20AB1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d20ab;
/* rgb */ color: rgb(45, 32, 171);
/* oklch */ color: oklch(37.8% 0.205 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2d20ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d20ab;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d20ab",
  "rgb": {
    "r": 45,
    "g": 32,
    "b": 171
  },
  "hsl": {
    "h": 245.612,
    "s": 68.473,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37825,
    "c": 0.20495,
    "h": 274.5
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#2D20AB
secondary
#BDC760
accent
#EB3CDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D20AB

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

Preview Lab → · Contrast checker → · Palette generator →

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