#21387F#21387F

#21387F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.7% C 0.124 H 266.7°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#21387F
RGBrgb(33, 56, 127)
HSLhsl(225, 59%, 31%)
HSVhsv(225, 74%, 50%)
CMYKcmyk(74%, 55.9%, 0%, 50.2%)
CIE-LABlab(25.81, 17.42, -42.85)
CIE-LCHlch(25.81, 46.26, 292.12°)
OKLaboklab(36.68% -0.0072 -0.1233)
OKLCHoklch(36.68% 0.124 266.7)
XYZxyz(5.8708, 4.6834, 20.6691)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21387F #7F6821
analogous
#21677F #21387F #39217F
triadic
#21387F #7F2138 #387F21
tetradic
#21387F #7F2167 #7F6821 #217F39
square
#21387F #7F2167 #7F6821 #217F39
split-complementary
#21387F #7F3921 #677F21
monochromatic
#080D1E #14234E #21387F #2E4DB0 #4A6BD0

Accessibility & contrast

On white

10.84
#21387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#21387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21387F
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21387F#FFFFFF#000000##FFFFFF
##21387F1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024281
Deuteranopia (green-blind)
#00397E
Tritanopia (blue-blind)
#004955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21387f;
/* rgb */ color: rgb(33, 56, 127);
/* oklch */ color: oklch(36.7% 0.124 266.7);
Tailwind
colors: {
  custom: {
    50: '#6a6ea5',
    500: '#21387f',
    950: '#000000',
  },
}
SCSS
$custom: #21387f;
$custom-light: #6a6ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#21387f",
  "rgb": {
    "r": 33,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 225.319,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.12356,
    "h": 266.7
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#21387F
secondary
#B2984A
accent
#BC46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21387F

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

Preview Lab → · Contrast checker → · Palette generator →

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