#21378A#21378A

#21378A is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.141 H 267.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#21378A
RGBrgb(33, 55, 138)
HSLhsl(227, 61%, 34%)
HSVhsv(227, 76%, 54%)
CMYKcmyk(76.1%, 60.1%, 0%, 45.9%)
CIE-LABlab(26.42, 22.46, -48.74)
CIE-LCHlch(26.42, 53.66, 294.74°)
OKLaboklab(37.42% -0.0058 -0.1407)
OKLCHoklch(37.42% 0.141 267.6)
XYZxyz(6.5792, 4.8900, 24.6369)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21378A #8A7421
analogous
#216B8A #21378A #3F218A
triadic
#21378A #8A2137 #378A21
tetradic
#21378A #8A216B #8A7421 #218A3F
square
#21378A #8A216B #8A7421 #218A3F
split-complementary
#21378A #8A3F21 #6B8A21
monochromatic
#091027 #152359 #21378A #2D4BBB #506CD5

Accessibility & contrast

On white

10.62
#21378A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21378A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21378A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21378A#FFFFFF#000000##FFFFFF
##21378A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21378a;
/* rgb */ color: rgb(33, 55, 138);
/* oklch */ color: oklch(37.4% 0.141 267.6);
Tailwind
colors: {
  custom: {
    50: '#6d6dad',
    500: '#21378a',
    950: '#000000',
  },
}
SCSS
$custom: #21378a;
$custom-light: #6d6dad;
$custom-dark: #000000;
JSON
{
  "hex": "#21378a",
  "rgb": {
    "r": 33,
    "g": 55,
    "b": 138
  },
  "hsl": {
    "h": 227.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.14078,
    "h": 267.6
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#21378A
secondary
#B9A24E
accent
#C343E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21378A

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

Preview Lab → · Contrast checker → · Palette generator →

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