#21388C#21388C

#21388C is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.142 H 267.4°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#21388C
RGBrgb(33, 56, 140)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 76%, 55%)
CMYKcmyk(76.4%, 60%, 0%, 45.1%)
CIE-LABlab(26.86, 22.55, -49.26)
CIE-LCHlch(26.86, 54.17, 294.60°)
OKLaboklab(37.8% -0.0065 -0.1422)
OKLCHoklch(37.8% 0.142 267.4)
XYZxyz(6.7733, 5.0444, 25.4226)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388C #8C7521
analogous
#216E8C #21388C #40218C
triadic
#21388C #8C2138 #388C21
tetradic
#21388C #8C216E #8C7521 #218C40
square
#21388C #8C216E #8C7521 #218C40
split-complementary
#21388C #8C4021 #6E8C21
monochromatic
#0A1029 #15245A #21388C #2D4CBE #516ED6

Accessibility & contrast

On white

10.45
#21388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#21388C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388C
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388C#FFFFFF#000000##FFFFFF
##21388C1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21388c;
/* rgb */ color: rgb(33, 56, 140);
/* oklch */ color: oklch(37.8% 0.142 267.4);
Tailwind
colors: {
  custom: {
    50: '#6d6eae',
    500: '#21388c',
    950: '#000000',
  },
}
SCSS
$custom: #21388c;
$custom-light: #6d6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#21388c",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 227.103,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.378,
    "c": 0.14232,
    "h": 267.4
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#21388C
secondary
#B9A34F
accent
#C243E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21388C

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

Preview Lab → · Contrast checker → · Palette generator →

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