#21438C#21438C

#21438C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.128 H 263.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#21438C
RGBrgb(33, 67, 140)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 76%, 55%)
CMYKcmyk(76.4%, 52.1%, 0%, 45.1%)
CIE-LABlab(29.99, 14.96, -44.19)
CIE-LCHlch(29.99, 46.65, 288.71°)
OKLaboklab(40.16% -0.0154 -0.1271)
OKLCHoklch(40.16% 0.128 263.1)
XYZxyz(7.3663, 6.2303, 25.6202)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21438C #8C6A21
analogous
#21798C #21438C #35218C
triadic
#21438C #8C2143 #438C21
tetradic
#21438C #8C2179 #8C6A21 #218C35
square
#21438C #8C2179 #8C6A21 #218C35
split-complementary
#21438C #8C3521 #798C21
monochromatic
#0A1429 #152B5A #21438C #2D5BBE #517CD6

Accessibility & contrast

On white

9.35
#21438C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21438C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21438C#FFFFFF#000000##FFFFFF
##21438C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C8F
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #21438c;
/* rgb */ color: rgb(33, 67, 140);
/* oklch */ color: oklch(40.2% 0.128 263.1);
Tailwind
colors: {
  custom: {
    50: '#6c76ae',
    500: '#21438c',
    950: '#000000',
  },
}
SCSS
$custom: #21438c;
$custom-light: #6c76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#21438c",
  "rgb": {
    "r": 33,
    "g": 67,
    "b": 140
  },
  "hsl": {
    "h": 220.935,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40159,
    "c": 0.12801,
    "h": 263.1
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#21438C
secondary
#B9984F
accent
#B143E5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21438C

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

Preview Lab → · Contrast checker → · Palette generator →

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