#2021B3#2021B3

#2021B3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.217 H 269.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2021B3
RGBrgb(32, 33, 179)
HSLhsl(240, 70%, 41%)
HSVhsv(240, 82%, 70%)
CMYKcmyk(82.1%, 81.6%, 0%, 29.8%)
CIE-LABlab(25.71, 50.40, -74.88)
CIE-LCHlch(25.71, 90.26, 303.95°)
OKLaboklab(38.14% -0.0013 -0.2168)
OKLCHoklch(38.14% 0.217 269.7)
XYZxyz(9.2734, 4.6484, 43.0476)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2021B3 #B3B220
analogous
#206BB3 #2021B3 #6920B3
triadic
#2021B3 #B32021 #21B320
tetradic
#2021B3 #B3206B #B3B220 #20B369
square
#2021B3 #B3206B #B3B220 #20B369
split-complementary
#2021B3 #B36920 #6BB320
monochromatic
#0D0E4B #17177F #2021B3 #3536DB #696AE4

Accessibility & contrast

On white

10.88
#2021B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2021B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2021B3
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2021B3#FFFFFF#000000##FFFFFF
##2021B31.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2021b3;
/* rgb */ color: rgb(32, 33, 179);
/* oklch */ color: oklch(38.1% 0.217 269.7);
Tailwind
colors: {
  custom: {
    50: '#7960cb',
    500: '#2021b3',
    950: '#000000',
  },
}
SCSS
$custom: #2021b3;
$custom-light: #7960cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2021b3",
  "rgb": {
    "r": 32,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 239.592,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.21681,
    "h": 269.7
  },
  "luminance": 0.04649
}

Semantic roles & 50–950 ramp

primary
#2021B3
secondary
#CAC965
accent
#EB3BEC
background
#F8F5FC
surface
#EFEAF9
border
#CAC6D2
text
#0B0514
muted
#7C7982

Preview Lab

Preview with #2021B3

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

Preview Lab → · Contrast checker → · Palette generator →

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