#2021BA#2021BA

#2021BA is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 39.0% C 0.225 H 269.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2021BA
RGBrgb(32, 33, 186)
HSLhsl(240, 71%, 43%)
HSVhsv(240, 83%, 73%)
CMYKcmyk(82.8%, 82.3%, 0%, 27.1%)
CIE-LABlab(26.56, 52.59, -77.63)
CIE-LCHlch(26.56, 93.77, 304.11°)
OKLaboklab(38.98% -0.0027 -0.2248)
OKLCHoklch(38.98% 0.225 269.3)
XYZxyz(9.9994, 4.9388, 46.8711)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2021BA #BAB920
analogous
#206EBA #2021BA #6C20BA
triadic
#2021BA #BA2021 #21BA20
tetradic
#2021BA #BA206E #BAB920 #20BA6C
square
#2021BA #BA206E #BAB920 #20BA6C
split-complementary
#2021BA #BA6C20 #6EBA20
monochromatic
#0E0E52 #171886 #2021BA #3A3BDD #6E6FE6

Accessibility & contrast

On white

10.56
#2021BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2021BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2021BA
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2021BA#FFFFFF#000000##FFFFFF
##2021BA1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BE
Deuteranopia (green-blind)
#0037B7
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2021ba;
/* rgb */ color: rgb(32, 33, 186);
/* oklch */ color: oklch(39.0% 0.225 269.3);
Tailwind
colors: {
  custom: {
    50: '#7b61d0',
    500: '#2021ba',
    950: '#000000',
  },
}
SCSS
$custom: #2021ba;
$custom-light: #7b61d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2021ba",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 239.61,
    "s": 70.642,
    "l": 42.745
  },
  "oklch": {
    "l": 0.38978,
    "c": 0.2248,
    "h": 269.3
  },
  "luminance": 0.0494
}

Semantic roles & 50–950 ramp

primary
#2021BA
secondary
#CCCC69
accent
#EC3AED
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2021BA

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

Preview Lab → · Contrast checker → · Palette generator →

#2021BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva