#21388E#21388E

#21388E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.145 H 267.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#21388E
RGBrgb(33, 56, 142)
HSLhsl(227, 62%, 34%)
HSVhsv(227, 77%, 56%)
CMYKcmyk(76.8%, 60.6%, 0%, 44.3%)
CIE-LABlab(27.03, 23.34, -50.22)
CIE-LCHlch(27.03, 55.38, 294.92°)
OKLaboklab(37.98% -0.0065 -0.145)
OKLCHoklch(37.98% 0.145 267.4)
XYZxyz(6.9222, 5.1039, 26.2063)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21388E #8E7721
analogous
#216F8E #21388E #40218E
triadic
#21388E #8E2138 #388E21
tetradic
#21388E #8E216F #8E7721 #218E40
square
#21388E #8E216F #8E7721 #218E40
split-complementary
#21388E #8E4021 #6F8E21
monochromatic
#0A112B #15245C #21388E #2D4CC0 #526ED7

Accessibility & contrast

On white

10.39
#21388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#21388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21388E
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21388E#FFFFFF#000000##FFFFFF
##21388E1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21388e;
/* rgb */ color: rgb(33, 56, 142);
/* oklch */ color: oklch(38.0% 0.145 267.4);
Tailwind
colors: {
  custom: {
    50: '#6e6eb0',
    500: '#21388e',
    950: '#000000',
  },
}
SCSS
$custom: #21388e;
$custom-light: #6e6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21388e",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 227.339,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37978,
    "c": 0.14514,
    "h": 267.4
  },
  "luminance": 0.05105
}

Semantic roles & 50–950 ramp

primary
#21388E
secondary
#BAA450
accent
#C342E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21388E

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

Preview Lab → · Contrast checker → · Palette generator →

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