#21244F#21244F

#21244F is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.078 H 277.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#21244F
RGBrgb(33, 36, 79)
HSLhsl(236, 41%, 22%)
HSVhsv(236, 58%, 31%)
CMYKcmyk(58.2%, 54.4%, 0%, 69%)
CIE-LABlab(16.25, 12.95, -26.99)
CIE-LCHlch(16.25, 29.94, 295.64°)
OKLaboklab(28.31% 0.0098 -0.077)
OKLCHoklch(28.31% 0.078 277.2)
XYZxyz(2.6689, 2.1494, 7.6699)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21244F #4F4C21
analogous
#213B4F #21244F #35214F
triadic
#21244F #4F2124 #244F21
tetradic
#21244F #4F213B #4F4C21 #214F35
square
#21244F #4F213B #4F4C21 #214F35
split-complementary
#21244F #4F3521 #3B4F21
monochromatic
#090A16 #0F1024 #21244F #33387A #454BA5

Accessibility & contrast

On white

14.69
#21244F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#21244F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21244F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21244F#FFFFFF#000000##FFFFFF
##21244F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#0A264E
Tritanopia (blue-blind)
#0C2D35
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #21244f;
/* rgb */ color: rgb(33, 36, 79);
/* oklch */ color: oklch(28.3% 0.078 277.2);
Tailwind
colors: {
  custom: {
    50: '#605e81',
    500: '#21244f',
    950: '#000000',
  },
}
SCSS
$custom: #21244f;
$custom-light: #605e81;
$custom-dark: #000000;
JSON
{
  "hex": "#21244f",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 79
  },
  "hsl": {
    "h": 236.087,
    "s": 41.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28307,
    "c": 0.07759,
    "h": 277.2
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

primary
#21244F
secondary
#837F49
accent
#C957D1
background
#F5F5F7
surface
#EAE9EE
border
#C6C5C9
text
#05040A
muted
#79797C

Preview Lab

Preview with #21244F

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

Preview Lab → · Contrast checker → · Palette generator →

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