#21438E#21438E

#21438E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.3% C 0.131 H 263.4°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#21438E
RGBrgb(33, 67, 142)
HSLhsl(221, 62%, 34%)
HSVhsv(221, 77%, 56%)
CMYKcmyk(76.8%, 52.8%, 0%, 44.3%)
CIE-LABlab(30.13, 15.76, -45.18)
CIE-LCHlch(30.13, 47.85, 289.23°)
OKLaboklab(40.32% -0.0151 -0.13)
OKLCHoklch(40.32% 0.131 263.4)
XYZxyz(7.5151, 6.2898, 26.4039)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21438E #8E6C21
analogous
#217A8E #21438E #35218E
triadic
#21438E #8E2143 #438E21
tetradic
#21438E #8E217A #8E6C21 #218E35
square
#21438E #8E217A #8E6C21 #218E35
split-complementary
#21438E #8E3521 #7A8E21
monochromatic
#0A142B #152C5C #21438E #2D5AC0 #527CD7

Accessibility & contrast

On white

9.30
#21438E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#21438E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21438E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21438E#FFFFFF#000000##FFFFFF
##21438E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #21438e;
/* rgb */ color: rgb(33, 67, 142);
/* oklch */ color: oklch(40.3% 0.131 263.4);
Tailwind
colors: {
  custom: {
    50: '#6d76b0',
    500: '#21438e',
    950: '#000000',
  },
}
SCSS
$custom: #21438e;
$custom-light: #6d76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#21438e",
  "rgb": {
    "r": 33,
    "g": 67,
    "b": 142
  },
  "hsl": {
    "h": 221.284,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.13088,
    "h": 263.4
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#21438E
secondary
#BA9950
accent
#B342E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #21438E

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

Preview Lab → · Contrast checker → · Palette generator →

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