#21245F#21245F

#21245F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.103 H 275.9°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#21245F
RGBrgb(33, 36, 95)
HSLhsl(237, 48%, 25%)
HSVhsv(237, 65%, 37%)
CMYKcmyk(65.3%, 62.1%, 0%, 62.7%)
CIE-LABlab(17.51, 19.05, -35.69)
CIE-LCHlch(17.51, 40.46, 298.09°)
OKLaboklab(29.65% 0.0106 -0.1026)
OKLCHoklch(29.65% 0.103 275.9)
XYZxyz(3.3230, 2.4110, 11.1145)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21245F #5F5C21
analogous
#21435F #21245F #3D215F
triadic
#21245F #5F2124 #245F21
tetradic
#21245F #5F2143 #5F5C21 #215F3D
square
#21245F #5F2143 #5F5C21 #215F3D
split-complementary
#21245F #5F3D21 #435F21
monochromatic
#080917 #111332 #21245F #31358C #4146BA

Accessibility & contrast

On white

14.17
#21245F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#21245F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21245F
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21245F#FFFFFF#000000##FFFFFF
##21245F1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21245f;
/* rgb */ color: rgb(33, 36, 95);
/* oklch */ color: oklch(29.6% 0.103 275.9);
Tailwind
colors: {
  custom: {
    50: '#645e8d',
    500: '#21245f',
    950: '#000000',
  },
}
SCSS
$custom: #21245f;
$custom-light: #645e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#21245f",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 95
  },
  "hsl": {
    "h": 237.097,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29649,
    "c": 0.10312,
    "h": 275.9
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#21245F
secondary
#939049
accent
#D150D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21245F

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

Preview Lab → · Contrast checker → · Palette generator →

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