#21398A#21398A

#21398A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.8% C 0.138 H 267.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#21398A
RGBrgb(33, 57, 138)
HSLhsl(226, 61%, 34%)
HSVhsv(226, 76%, 54%)
CMYKcmyk(76.1%, 58.7%, 0%, 45.9%)
CIE-LABlab(26.97, 21.08, -47.84)
CIE-LCHlch(26.97, 52.27, 293.78°)
OKLaboklab(37.83% -0.0073 -0.138)
OKLCHoklch(37.83% 0.138 267)
XYZxyz(6.6762, 5.0838, 24.6693)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21398A #8A7221
analogous
#216D8A #21398A #3D218A
triadic
#21398A #8A2139 #398A21
tetradic
#21398A #8A216D #8A7221 #218A3D
square
#21398A #8A216D #8A7221 #218A3D
split-complementary
#21398A #8A3D21 #6D8A21
monochromatic
#091027 #152559 #21398A #2D4DBB #506FD5

Accessibility & contrast

On white

10.41
#21398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#21398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21398A
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21398A#FFFFFF#000000##FFFFFF
##21398A1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21398a;
/* rgb */ color: rgb(33, 57, 138);
/* oklch */ color: oklch(37.8% 0.138 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d6fad',
    500: '#21398a',
    950: '#000000',
  },
}
SCSS
$custom: #21398a;
$custom-light: #6d6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#21398a",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 226.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37832,
    "c": 0.13819,
    "h": 267
  },
  "luminance": 0.05085
}

Semantic roles & 50–950 ramp

primary
#21398A
secondary
#B9A04E
accent
#C043E5
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21398A

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

Preview Lab → · Contrast checker → · Palette generator →

#21398A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva