#21357F#21357F

#21357F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.0% C 0.128 H 267.9°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#21357F
RGBrgb(33, 53, 127)
HSLhsl(227, 59%, 31%)
HSVhsv(227, 74%, 50%)
CMYKcmyk(74%, 58.3%, 0%, 50.2%)
CIE-LABlab(24.96, 19.52, -44.24)
CIE-LCHlch(24.96, 48.36, 293.80°)
OKLaboklab(36.04% -0.0046 -0.1275)
OKLCHoklch(36.04% 0.128 267.9)
XYZxyz(5.7297, 4.4013, 20.6221)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21357F #7F6B21
analogous
#21647F #21357F #3C217F
triadic
#21357F #7F2135 #357F21
tetradic
#21357F #7F2164 #7F6B21 #217F3C
square
#21357F #7F2164 #7F6B21 #217F3C
split-complementary
#21357F #7F3C21 #647F21
monochromatic
#080C1E #14214E #21357F #2E49B0 #4A67D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##21357F#FFFFFF#000000##FFFFFF
##21357F1.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)
#004082
Deuteranopia (green-blind)
#00377E
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21357f;
/* rgb */ color: rgb(33, 53, 127);
/* oklch */ color: oklch(36.0% 0.128 267.9);
Tailwind
colors: {
  custom: {
    50: '#6a6ba5',
    500: '#21357f',
    950: '#000000',
  },
}
SCSS
$custom: #21357f;
$custom-light: #6a6ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#21357f",
  "rgb": {
    "r": 33,
    "g": 53,
    "b": 127
  },
  "hsl": {
    "h": 227.234,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36039,
    "c": 0.12757,
    "h": 267.9
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#21357F
secondary
#B29C4A
accent
#C146E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #21357F

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

Preview Lab → · Contrast checker → · Palette generator →

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