#21395E#21395E

#21395E is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.5% C 0.072 H 258.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#21395E
RGBrgb(33, 57, 94)
HSLhsl(216, 48%, 25%)
HSVhsv(216, 65%, 37%)
CMYKcmyk(64.9%, 39.4%, 0%, 63.1%)
CIE-LABlab(23.86, 3.69, -24.86)
CIE-LCHlch(23.86, 25.13, 278.43°)
OKLaboklab(34.46% -0.014 -0.0705)
OKLCHoklch(34.46% 0.072 258.8)
XYZxyz(4.1100, 4.0574, 11.1541)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21395E #5E4621
analogous
#21585E #21395E #27215E
triadic
#21395E #5E2139 #395E21
tetradic
#21395E #5E2158 #5E4621 #215E27
square
#21395E #5E2158 #5E4621 #215E27
split-complementary
#21395E #5E2721 #585E21
monochromatic
#080E17 #111E31 #21395E #31548B #4170B9

Accessibility & contrast

On white

11.59
#21395E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#21395E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21395E
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21395E#FFFFFF#000000##FFFFFF
##21395E1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293C60
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#004147
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #21395e;
/* rgb */ color: rgb(33, 57, 94);
/* oklch */ color: oklch(34.5% 0.072 258.8);
Tailwind
colors: {
  custom: {
    50: '#636f8c',
    500: '#21395e',
    950: '#000000',
  },
}
SCSS
$custom: #21395e;
$custom-light: #636f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#21395e",
  "rgb": {
    "r": 33,
    "g": 57,
    "b": 94
  },
  "hsl": {
    "h": 216.393,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34462,
    "c": 0.07184,
    "h": 258.8
  },
  "luminance": 0.04058
}

Semantic roles & 50–950 ramp

primary
#21395E
secondary
#927549
accent
#A250D8
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#05070C
muted
#7A7A7D

Preview Lab

Preview with #21395E

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

Preview Lab → · Contrast checker → · Palette generator →

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