#21245E#21245E

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

Color values

HEX#21245E
RGBrgb(33, 36, 94)
HSLhsl(237, 48%, 25%)
HSVhsv(237, 65%, 37%)
CMYKcmyk(64.9%, 61.7%, 0%, 63.1%)
CIE-LABlab(17.43, 18.66, -35.16)
CIE-LCHlch(17.43, 39.81, 297.96°)
OKLaboklab(29.56% 0.0106 -0.101)
OKLCHoklch(29.56% 0.102 276)
XYZxyz(3.2778, 2.3930, 10.8767)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21245E #5E5B21
analogous
#21435E #21245E #3C215E
triadic
#21245E #5E2124 #245E21
tetradic
#21245E #5E2143 #5E5B21 #215E3C
square
#21245E #5E2143 #5E5B21 #215E3C
split-complementary
#21245E #5E3C21 #435E21
monochromatic
#080917 #111331 #21245E #31358B #4147B9

Accessibility & contrast

On white

14.20
#21245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21245E
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21245E#FFFFFF#000000##FFFFFF
##21245E1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21245e;
/* rgb */ color: rgb(33, 36, 94);
/* oklch */ color: oklch(29.6% 0.102 276.0);
Tailwind
colors: {
  custom: {
    50: '#645e8c',
    500: '#21245e',
    950: '#000000',
  },
}
SCSS
$custom: #21245e;
$custom-light: #645e8c;
$custom-dark: #000000;
JSON
{
  "hex": "#21245e",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 237.049,
    "s": 48.031,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29561,
    "c": 0.10158,
    "h": 276
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#21245E
secondary
#928F49
accent
#D150D8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #21245E

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

Preview Lab → · Contrast checker → · Palette generator →

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