#21285F#21285F

#21285F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.097 H 273.7°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#21285F
RGBrgb(33, 40, 95)
HSLhsl(233, 48%, 25%)
HSVhsv(233, 65%, 37%)
CMYKcmyk(65.3%, 57.9%, 0%, 62.7%)
CIE-LABlab(18.66, 16.18, -33.84)
CIE-LCHlch(18.66, 37.51, 295.56°)
OKLaboklab(30.5% 0.0063 -0.0971)
OKLCHoklch(30.5% 0.097 273.7)
XYZxyz(3.4509, 2.6669, 11.1572)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21285F #5F5821
analogous
#21475F #21285F #39215F
triadic
#21285F #5F2128 #285F21
tetradic
#21285F #5F2147 #5F5821 #215F39
square
#21285F #5F2147 #5F5821 #215F39
split-complementary
#21285F #5F3921 #475F21
monochromatic
#080A17 #111532 #21285F #313B8C #414EBA

Accessibility & contrast

On white

13.70
#21285F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21285F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21285F#FFFFFF#000000##FFFFFF
##21285F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043061
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#00353F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #21285f;
/* rgb */ color: rgb(33, 40, 95);
/* oklch */ color: oklch(30.5% 0.097 273.7);
Tailwind
colors: {
  custom: {
    50: '#64618d',
    500: '#21285f',
    950: '#000000',
  },
}
SCSS
$custom: #21285f;
$custom-light: #64618d;
$custom-dark: #000000;
JSON
{
  "hex": "#21285f",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 95
  },
  "hsl": {
    "h": 233.226,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30504,
    "c": 0.09726,
    "h": 273.7
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#21285F
secondary
#938B49
accent
#C950D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #21285F

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

Preview Lab → · Contrast checker → · Palette generator →

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