#21438B#21438B

#21438B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.127 H 263.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#21438B
RGBrgb(33, 67, 139)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 76%, 55%)
CMYKcmyk(76.3%, 51.8%, 0%, 45.5%)
CIE-LABlab(29.91, 14.56, -43.69)
CIE-LCHlch(29.91, 46.05, 288.44°)
OKLaboklab(40.08% -0.0155 -0.1256)
OKLCHoklch(40.08% 0.127 263)
XYZxyz(7.2929, 6.2009, 25.2336)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21438B #8B6921
analogous
#21788B #21438B #34218B
triadic
#21438B #8B2143 #438B21
tetradic
#21438B #8B2178 #8B6921 #218B34
square
#21438B #8B2178 #8B6921 #218B34
split-complementary
#21438B #8B3421 #788B21
monochromatic
#0A1328 #152B5A #21438B #2D5BBC #517BD6

Accessibility & contrast

On white

9.37
#21438B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#21438B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21438B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21438B#FFFFFF#000000##FFFFFF
##21438B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #21438b;
/* rgb */ color: rgb(33, 67, 139);
/* oklch */ color: oklch(40.1% 0.127 263.0);
Tailwind
colors: {
  custom: {
    50: '#6c76ad',
    500: '#21438b',
    950: '#000000',
  },
}
SCSS
$custom: #21438b;
$custom-light: #6c76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21438b",
  "rgb": {
    "r": 33,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 220.755,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40081,
    "c": 0.12656,
    "h": 263
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#21438B
secondary
#B9974F
accent
#B143E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #21438B

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

Preview Lab → · Contrast checker → · Palette generator →

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