#21368B#21368B

#21368B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.143 H 268.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#21368B
RGBrgb(33, 54, 139)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 76%, 55%)
CMYKcmyk(76.3%, 61.2%, 0%, 45.5%)
CIE-LABlab(26.23, 23.54, -49.66)
CIE-LCHlch(26.23, 54.96, 295.36°)
OKLaboklab(37.3% -0.005 -0.1434)
OKLCHoklch(37.3% 0.143 268)
XYZxyz(6.6050, 4.8250, 25.0043)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21368B #8B7621
analogous
#216B8B #21368B #41218B
triadic
#21368B #8B2136 #368B21
tetradic
#21368B #8B216B #8B7621 #218B41
square
#21368B #8B216B #8B7621 #218B41
split-complementary
#21368B #8B4121 #6B8B21
monochromatic
#0A1028 #15235A #21368B #2D49BC #516BD6

Accessibility & contrast

On white

10.69
#21368B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#21368B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21368B
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21368B#FFFFFF#000000##FFFFFF
##21368B1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21368b;
/* rgb */ color: rgb(33, 54, 139);
/* oklch */ color: oklch(37.3% 0.143 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d6cae',
    500: '#21368b',
    950: '#000000',
  },
}
SCSS
$custom: #21368b;
$custom-light: #6d6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#21368b",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 139
  },
  "hsl": {
    "h": 228.113,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.14349,
    "h": 268
  },
  "luminance": 0.04826
}

Semantic roles & 50–950 ramp

primary
#21368B
secondary
#B9A44F
accent
#C543E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21368B

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

Preview Lab → · Contrast checker → · Palette generator →

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