#21388F#21388F

#21388F is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.147 H 267.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#21388F
RGBrgb(33, 56, 143)
HSLhsl(227, 63%, 35%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(76.9%, 60.8%, 0%, 43.9%)
CIE-LABlab(27.11, 23.73, -50.70)
CIE-LCHlch(27.11, 55.98, 295.08°)
OKLaboklab(38.07% -0.0064 -0.1464)
OKLCHoklch(38.07% 0.147 267.5)
XYZxyz(6.9976, 5.1341, 26.6035)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388F #8F7821
analogous
#216F8F #21388F #41218F
triadic
#21388F #8F2138 #388F21
tetradic
#21388F #8F216F #8F7821 #218F41
square
#21388F #8F216F #8F7821 #218F41
split-complementary
#21388F #8F4121 #6F8F21
monochromatic
#0A112C #16255D #21388F #2C4BC1 #536FD7

Accessibility & contrast

On white

10.36
#21388F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#21388F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388F#FFFFFF#000000##FFFFFF
##21388F1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21388f;
/* rgb */ color: rgb(33, 56, 143);
/* oklch */ color: oklch(38.1% 0.147 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e6eb1',
    500: '#21388f',
    950: '#000000',
  },
}
SCSS
$custom: #21388f;
$custom-light: #6e6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21388f",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 143
  },
  "hsl": {
    "h": 227.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38068,
    "c": 0.14655,
    "h": 267.5
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#21388F
secondary
#BBA551
accent
#C342E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21388F

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

Preview Lab → · Contrast checker → · Palette generator →

#21388F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva