#21368E#21368E

#21368E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.148 H 268.1°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#21368E
RGBrgb(33, 54, 142)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 77%, 56%)
CMYKcmyk(76.8%, 62%, 0%, 44.3%)
CIE-LABlab(26.49, 24.71, -51.10)
CIE-LCHlch(26.49, 56.76, 295.80°)
OKLaboklab(37.58% -0.005 -0.1476)
OKLCHoklch(37.58% 0.148 268.1)
XYZxyz(6.8272, 4.9139, 26.1746)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21368E #8E7921
analogous
#216D8E #21368E #42218E
triadic
#21368E #8E2136 #368E21
tetradic
#21368E #8E216D #8E7921 #218E42
square
#21368E #8E216D #8E7921 #218E42
split-complementary
#21368E #8E4221 #6D8E21
monochromatic
#0A102B #15235C #21368E #2D49C0 #526CD7

Accessibility & contrast

On white

10.59
#21368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21368E
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21368E#FFFFFF#000000##FFFFFF
##21368E1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21368e;
/* rgb */ color: rgb(33, 54, 142);
/* oklch */ color: oklch(37.6% 0.148 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e6cb0',
    500: '#21368e',
    950: '#000000',
  },
}
SCSS
$custom: #21368e;
$custom-light: #6e6cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21368e",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 228.44,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37576,
    "c": 0.14771,
    "h": 268.1
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

primary
#21368E
secondary
#BAA650
accent
#C642E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21368E

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

Preview Lab → · Contrast checker → · Palette generator →

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