#21427F#21427F

#21427F is a dark, moderate blue. Relative luminance 0.058; OKLCH L 38.9% C 0.110 H 261.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#21427F
RGBrgb(33, 66, 127)
HSLhsl(219, 59%, 31%)
HSVhsv(219, 74%, 50%)
CMYKcmyk(74%, 48%, 0%, 50.2%)
CIE-LABlab(28.78, 10.46, -38.07)
CIE-LCHlch(28.78, 39.48, 285.37°)
OKLaboklab(38.94% -0.0164 -0.1091)
OKLCHoklch(38.94% 0.11 261.4)
XYZxyz(6.4048, 5.7514, 20.8471)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21427F #7F5E21
analogous
#21717F #21427F #2F217F
triadic
#21427F #7F2142 #427F21
tetradic
#21427F #7F2171 #7F5E21 #217F2F
square
#21427F #7F2171 #7F5E21 #217F2F
split-complementary
#21427F #7F2F21 #717F21
monochromatic
#08101E #14294E #21427F #2E5BB0 #4A79D0

Accessibility & contrast

On white

9.77
#21427F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#21427F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21427F
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21427F#FFFFFF#000000##FFFFFF
##21427F1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224881
Deuteranopia (green-blind)
#0D407E
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #21427f;
/* rgb */ color: rgb(33, 66, 127);
/* oklch */ color: oklch(38.9% 0.110 261.4);
Tailwind
colors: {
  custom: {
    50: '#6975a4',
    500: '#21427f',
    950: '#000000',
  },
}
SCSS
$custom: #21427f;
$custom-light: #6975a4;
$custom-dark: #000000;
JSON
{
  "hex": "#21427f",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 127
  },
  "hsl": {
    "h": 218.936,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38942,
    "c": 0.11033,
    "h": 261.4
  },
  "luminance": 0.05752
}

Semantic roles & 50–950 ramp

primary
#21427F
secondary
#B28D4A
accent
#AB46E2
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21427F

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

Preview Lab → · Contrast checker → · Palette generator →

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