#21396F#21396F

#21396F is a dark, moderate blue. Relative luminance 0.044; OKLCH L 35.6% C 0.098 H 264.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#21396F
RGBrgb(33, 57, 111)
HSLhsl(222, 54%, 28%)
HSVhsv(222, 70%, 44%)
CMYKcmyk(70.3%, 48.6%, 0%, 56.5%)
CIE-LABlab(24.94, 10.35, -34.12)
CIE-LCHlch(24.94, 35.65, 286.88°)
OKLaboklab(35.65% -0.0102 -0.0976)
OKLCHoklch(35.65% 0.098 264.1)
XYZxyz(4.9586, 4.3968, 15.6232)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21396F #6F5721
analogous
#21606F #21396F #30216F
triadic
#21396F #6F2139 #396F21
tetradic
#21396F #6F2160 #6F5721 #216F30
square
#21396F #6F2160 #6F5721 #216F30
split-complementary
#21396F #6F3021 #606F21
monochromatic
#070C18 #132140 #21396F #2F519E #436CC7

Accessibility & contrast

On white

11.17
#21396F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#21396F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21396F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21396F#FFFFFF#000000##FFFFFF
##21396F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F71
Deuteranopia (green-blind)
#0E386E
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21396f;
/* rgb */ color: rgb(33, 57, 111);
/* oklch */ color: oklch(35.6% 0.098 264.1);
Tailwind
colors: {
  custom: {
    50: '#666e99',
    500: '#21396f',
    950: '#000000',
  },
}
SCSS
$custom: #21396f;
$custom-light: #666e99;
$custom-dark: #000000;
JSON
{
  "hex": "#21396f",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 111
  },
  "hsl": {
    "h": 221.538,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35648,
    "c": 0.09815,
    "h": 264.1
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#21396F
secondary
#A38749
accent
#B04ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #21396F

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

Preview Lab → · Contrast checker → · Palette generator →

#21396F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva