#21438D#21438D

#21438D is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.2% C 0.129 H 263.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#21438D
RGBrgb(33, 67, 141)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 77%, 55%)
CMYKcmyk(76.6%, 52.5%, 0%, 44.7%)
CIE-LABlab(30.06, 15.36, -44.68)
CIE-LCHlch(30.06, 47.25, 288.97°)
OKLaboklab(40.24% -0.0153 -0.1285)
OKLCHoklch(40.24% 0.129 263.2)
XYZxyz(7.4404, 6.2599, 26.0103)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21438D #8D6B21
analogous
#21798D #21438D #35218D
triadic
#21438D #8D2143 #438D21
tetradic
#21438D #8D2179 #8D6B21 #218D35
square
#21438D #8D2179 #8D6B21 #218D35
split-complementary
#21438D #8D3521 #798D21
monochromatic
#0A142A #152B5B #21438D #2D5BBF #527CD6

Accessibility & contrast

On white

9.32
#21438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#21438D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21438D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21438D#FFFFFF#000000##FFFFFF
##21438D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #21438d;
/* rgb */ color: rgb(33, 67, 141);
/* oklch */ color: oklch(40.2% 0.129 263.2);
Tailwind
colors: {
  custom: {
    50: '#6d76af',
    500: '#21438d',
    950: '#000000',
  },
}
SCSS
$custom: #21438d;
$custom-light: #6d76af;
$custom-dark: #000000;
JSON
{
  "hex": "#21438d",
  "rgb": {
    "r": 33,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 221.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40238,
    "c": 0.12944,
    "h": 263.2
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#21438D
secondary
#BA9950
accent
#B243E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21438D

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

Preview Lab → · Contrast checker → · Palette generator →

#21438D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva