#2021BD#2021BD

#2021BD is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.3% C 0.228 H 269.2°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2021BD
RGBrgb(32, 33, 189)
HSLhsl(240, 71%, 43%)
HSVhsv(240, 83%, 74%)
CMYKcmyk(83.1%, 82.5%, 0%, 25.9%)
CIE-LABlab(26.93, 53.52, -78.80)
CIE-LCHlch(26.93, 95.26, 304.18°)
OKLaboklab(39.34% -0.0033 -0.2282)
OKLCHoklch(39.34% 0.228 269.2)
XYZxyz(10.3217, 5.0677, 48.5684)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2021BD #BDBC20
analogous
#206FBD #2021BD #6D20BD
triadic
#2021BD #BD2021 #21BD20
tetradic
#2021BD #BD206F #BDBC20 #20BD6D
square
#2021BD #BD206F #BDBC20 #20BD6D
split-complementary
#2021BD #BD6D20 #6FBD20
monochromatic
#0E0F54 #171889 #2021BD #3C3DDE #7171E7

Accessibility & contrast

On white

10.43
#2021BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2021BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2021BD
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2021BD#FFFFFF#000000##FFFFFF
##2021BD1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#0037BA
Tritanopia (blue-blind)
#005471
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2021bd;
/* rgb */ color: rgb(32, 33, 189);
/* oklch */ color: oklch(39.3% 0.228 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c61d2',
    500: '#2021bd',
    950: '#000000',
  },
}
SCSS
$custom: #2021bd;
$custom-light: #7c61d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2021bd",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 239.618,
    "s": 71.041,
    "l": 43.333
  },
  "oklch": {
    "l": 0.39338,
    "c": 0.22818,
    "h": 269.2
  },
  "luminance": 0.05069
}

Semantic roles & 50–950 ramp

primary
#2021BD
secondary
#CDCD6B
accent
#ED3AEE
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #2021BD

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

Preview Lab → · Contrast checker → · Palette generator →

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