#21498E#21498E

#21498E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.123 H 260.5°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#21498E
RGBrgb(33, 73, 142)
HSLhsl(218, 62%, 34%)
HSVhsv(218, 77%, 56%)
CMYKcmyk(76.8%, 48.6%, 0%, 44.3%)
CIE-LABlab(31.90, 11.66, -42.33)
CIE-LCHlch(31.90, 43.91, 285.40°)
OKLaboklab(41.67% -0.0203 -0.1215)
OKLCHoklch(41.67% 0.123 260.5)
XYZxyz(7.8905, 7.0405, 26.5290)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21498E #8E6621
analogous
#21808E #21498E #30218E
triadic
#21498E #8E2149 #498E21
tetradic
#21498E #8E2180 #8E6621 #218E30
square
#21498E #8E2180 #8E6621 #218E30
split-complementary
#21498E #8E3021 #808E21
monochromatic
#0A162B #152F5C #21498E #2D63C0 #5283D7

Accessibility & contrast

On white

8.72
#21498E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21498E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21498E#FFFFFF#000000##FFFFFF
##21498E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235091
Deuteranopia (green-blind)
#04468D
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #21498e;
/* rgb */ color: rgb(33, 73, 142);
/* oklch */ color: oklch(41.7% 0.123 260.5);
Tailwind
colors: {
  custom: {
    50: '#6d7baf',
    500: '#21498e',
    950: '#000000',
  },
}
SCSS
$custom: #21498e;
$custom-light: #6d7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#21498e",
  "rgb": {
    "r": 33,
    "g": 73,
    "b": 142
  },
  "hsl": {
    "h": 217.982,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.12319,
    "h": 260.5
  },
  "luminance": 0.07041
}

Semantic roles & 50–950 ramp

primary
#21498E
secondary
#BA9450
accent
#AA42E5
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #21498E

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

Preview Lab → · Contrast checker → · Palette generator →

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