#21498C#21498C

#21498C is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.5% C 0.120 H 260.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#21498C
RGBrgb(33, 73, 140)
HSLhsl(218, 62%, 34%)
HSVhsv(218, 76%, 55%)
CMYKcmyk(76.4%, 47.9%, 0%, 45.1%)
CIE-LABlab(31.76, 10.86, -41.32)
CIE-LCHlch(31.76, 42.73, 284.73°)
OKLaboklab(41.52% -0.0207 -0.1185)
OKLCHoklch(41.52% 0.12 260.1)
XYZxyz(7.7417, 6.9810, 25.7453)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21498C #8C6421
analogous
#217F8C #21498C #2F218C
triadic
#21498C #8C2149 #498C21
tetradic
#21498C #8C217F #8C6421 #218C2F
square
#21498C #8C217F #8C6421 #218C2F
split-complementary
#21498C #8C2F21 #7F8C21
monochromatic
#0A1529 #152F5A #21498C #2D63BE #5183D6

Accessibility & contrast

On white

8.76
#21498C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#21498C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21498C
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21498C#FFFFFF#000000##FFFFFF
##21498C1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25508F
Deuteranopia (green-blind)
#0A468B
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #21498c;
/* rgb */ color: rgb(33, 73, 140);
/* oklch */ color: oklch(41.5% 0.120 260.1);
Tailwind
colors: {
  custom: {
    50: '#6c7bae',
    500: '#21498c',
    950: '#000000',
  },
}
SCSS
$custom: #21498c;
$custom-light: #6c7bae;
$custom-dark: #000000;
JSON
{
  "hex": "#21498c",
  "rgb": {
    "r": 33,
    "g": 73,
    "b": 140
  },
  "hsl": {
    "h": 217.57,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4152,
    "c": 0.12032,
    "h": 260.1
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

primary
#21498C
secondary
#B9924F
accent
#A843E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #21498C

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

Preview Lab → · Contrast checker → · Palette generator →

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