#21285E#21285E

#21285E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.4% C 0.096 H 273.7°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#21285E
RGBrgb(33, 40, 94)
HSLhsl(233, 48%, 25%)
HSVhsv(233, 65%, 37%)
CMYKcmyk(64.9%, 57.4%, 0%, 63.1%)
CIE-LABlab(18.58, 15.79, -33.30)
CIE-LCHlch(18.58, 36.86, 295.37°)
OKLaboklab(30.42% 0.0062 -0.0955)
OKLCHoklch(30.42% 0.096 273.7)
XYZxyz(3.4057, 2.6488, 10.9193)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21285E #5E5721
analogous
#21465E #21285E #39215E
triadic
#21285E #5E2128 #285E21
tetradic
#21285E #5E2146 #5E5721 #215E39
square
#21285E #5E2146 #5E5721 #215E39
split-complementary
#21285E #5E3921 #465E21
monochromatic
#080A17 #111531 #21285E #313B8B #414FB9

Accessibility & contrast

On white

13.73
#21285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#21285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21285E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21285E#FFFFFF#000000##FFFFFF
##21285E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#00353E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21285e;
/* rgb */ color: rgb(33, 40, 94);
/* oklch */ color: oklch(30.4% 0.096 273.7);
Tailwind
colors: {
  custom: {
    50: '#63618c',
    500: '#21285e',
    950: '#000000',
  },
}
SCSS
$custom: #21285e;
$custom-light: #63618c;
$custom-dark: #000000;
JSON
{
  "hex": "#21285e",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 233.115,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3042,
    "c": 0.09569,
    "h": 273.7
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#21285E
secondary
#928A49
accent
#C850D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #21285E

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

Preview Lab → · Contrast checker → · Palette generator →

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