#21358E#21358E

#21358E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.4% C 0.149 H 268.3°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#21358E
RGBrgb(33, 53, 142)
HSLhsl(229, 62%, 34%)
HSVhsv(229, 77%, 56%)
CMYKcmyk(76.8%, 62.7%, 0%, 44.3%)
CIE-LABlab(26.22, 25.39, -51.54)
CIE-LCHlch(26.22, 57.45, 296.23°)
OKLaboklab(37.38% -0.0043 -0.1489)
OKLCHoklch(37.38% 0.149 268.3)
XYZxyz(6.7811, 4.8218, 26.1593)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21358E #8E7A21
analogous
#216C8E #21358E #44218E
triadic
#21358E #8E2135 #358E21
tetradic
#21358E #8E216C #8E7A21 #218E44
square
#21358E #8E216C #8E7A21 #218E44
split-complementary
#21358E #8E4421 #6C8E21
monochromatic
#0A102B #15225C #21358E #2D48C0 #526BD7

Accessibility & contrast

On white

10.69
#21358E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#21358E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21358E
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21358E#FFFFFF#000000##FFFFFF
##21358E1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21358e;
/* rgb */ color: rgb(33, 53, 142);
/* oklch */ color: oklch(37.4% 0.149 268.3);
Tailwind
colors: {
  custom: {
    50: '#6e6cb0',
    500: '#21358e',
    950: '#000000',
  },
}
SCSS
$custom: #21358e;
$custom-light: #6e6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21358e",
  "rgb": {
    "r": 33,
    "g": 53,
    "b": 142
  },
  "hsl": {
    "h": 228.991,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37377,
    "c": 0.14897,
    "h": 268.3
  },
  "luminance": 0.04823
}

Semantic roles & 50–950 ramp

primary
#21358E
secondary
#BAA750
accent
#C742E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21358E

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

Preview Lab → · Contrast checker → · Palette generator →

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