#21285D#21285D

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

Color values

HEX#21285D
RGBrgb(33, 40, 93)
HSLhsl(233, 48%, 25%)
HSVhsv(233, 65%, 36%)
CMYKcmyk(64.5%, 57%, 0%, 63.5%)
CIE-LABlab(18.50, 15.40, -32.76)
CIE-LCHlch(18.50, 36.21, 295.18°)
OKLaboklab(30.34% 0.0062 -0.0939)
OKLCHoklch(30.34% 0.094 273.7)
XYZxyz(3.3611, 2.6310, 10.6845)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21285D #5D5621
analogous
#21465D #21285D #38215D
triadic
#21285D #5D2128 #285D21
tetradic
#21285D #5D2146 #5D5621 #215D38
square
#21285D #5D2146 #5D5621 #215D38
split-complementary
#21285D #5D3821 #465D21
monochromatic
#080A17 #111530 #21285D #313B8A #414FB7

Accessibility & contrast

On white

13.76
#21285D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21285D
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21285D#FFFFFF#000000##FFFFFF
##21285D1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07305F
Deuteranopia (green-blind)
#002B5C
Tritanopia (blue-blind)
#00343E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21285d;
/* rgb */ color: rgb(33, 40, 93);
/* oklch */ color: oklch(30.3% 0.094 273.7);
Tailwind
colors: {
  custom: {
    50: '#63618b',
    500: '#21285d',
    950: '#000000',
  },
}
SCSS
$custom: #21285d;
$custom-light: #63618b;
$custom-dark: #000000;
JSON
{
  "hex": "#21285d",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 93
  },
  "hsl": {
    "h": 233,
    "s": 47.619,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30337,
    "c": 0.09411,
    "h": 273.7
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#21285D
secondary
#918949
accent
#C851D7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #21285D

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

Preview Lab → · Contrast checker → · Palette generator →

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