#21498F#21498F

#21498F is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.7% C 0.125 H 260.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#21498F
RGBrgb(33, 73, 143)
HSLhsl(218, 63%, 35%)
HSVhsv(218, 77%, 56%)
CMYKcmyk(76.9%, 49%, 0%, 43.9%)
CIE-LABlab(31.97, 12.06, -42.83)
CIE-LCHlch(31.97, 44.50, 285.72°)
OKLaboklab(41.74% -0.0202 -0.123)
OKLCHoklch(41.74% 0.125 260.7)
XYZxyz(7.9659, 7.0707, 26.9262)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21498F #8F6721
analogous
#21808F #21498F #30218F
triadic
#21498F #8F2149 #498F21
tetradic
#21498F #8F2180 #8F6721 #218F30
square
#21498F #8F2180 #8F6721 #218F30
split-complementary
#21498F #8F3021 #808F21
monochromatic
#0A162C #16305D #21498F #2C62C1 #5383D7

Accessibility & contrast

On white

8.70
#21498F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#21498F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21498F
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21498F#FFFFFF#000000##FFFFFF
##21498F1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225192
Deuteranopia (green-blind)
#01468E
Tritanopia (blue-blind)
#005A65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #21498f;
/* rgb */ color: rgb(33, 73, 143);
/* oklch */ color: oklch(41.7% 0.125 260.7);
Tailwind
colors: {
  custom: {
    50: '#6d7bb0',
    500: '#21498f',
    950: '#000000',
  },
}
SCSS
$custom: #21498f;
$custom-light: #6d7bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21498f",
  "rgb": {
    "r": 33,
    "g": 73,
    "b": 143
  },
  "hsl": {
    "h": 218.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41742,
    "c": 0.12462,
    "h": 260.7
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#21498F
secondary
#BB9451
accent
#AA42E6
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #21498F

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

Preview Lab → · Contrast checker → · Palette generator →

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