#21388A#21388A

#21388A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.6% C 0.139 H 267.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#21388A
RGBrgb(33, 56, 138)
HSLhsl(227, 61%, 34%)
HSVhsv(227, 76%, 54%)
CMYKcmyk(76.1%, 59.4%, 0%, 45.9%)
CIE-LABlab(26.69, 21.77, -48.29)
CIE-LCHlch(26.69, 52.97, 294.26°)
OKLaboklab(37.62% -0.0066 -0.1393)
OKLCHoklch(37.62% 0.139 267.3)
XYZxyz(6.6272, 4.9859, 24.6529)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388A #8A7321
analogous
#216C8A #21388A #3E218A
triadic
#21388A #8A2138 #388A21
tetradic
#21388A #8A216C #8A7321 #218A3E
square
#21388A #8A216C #8A7321 #218A3E
split-complementary
#21388A #8A3E21 #6C8A21
monochromatic
#091027 #152459 #21388A #2D4CBB #506DD5

Accessibility & contrast

On white

10.51
#21388A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21388A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388A#FFFFFF#000000##FFFFFF
##21388A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21388a;
/* rgb */ color: rgb(33, 56, 138);
/* oklch */ color: oklch(37.6% 0.139 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d6ead',
    500: '#21388a',
    950: '#000000',
  },
}
SCSS
$custom: #21388a;
$custom-light: #6d6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#21388a",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 138
  },
  "hsl": {
    "h": 226.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37624,
    "c": 0.13948,
    "h": 267.3
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#21388A
secondary
#B9A14E
accent
#C143E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21388A

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

Preview Lab → · Contrast checker → · Palette generator →

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