#21427D#21427D

#21427D is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.107 H 261.0°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#21427D
RGBrgb(33, 66, 125)
HSLhsl(218, 58%, 31%)
HSVhsv(218, 74%, 49%)
CMYKcmyk(73.6%, 47.2%, 0%, 51%)
CIE-LABlab(28.64, 9.67, -37.04)
CIE-LCHlch(28.64, 38.28, 284.63°)
OKLaboklab(38.8% -0.0168 -0.1061)
OKLCHoklch(38.8% 0.107 261)
XYZxyz(6.2758, 5.6998, 20.1675)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21427D #7D5C21
analogous
#21707D #21427D #2E217D
triadic
#21427D #7D2142 #427D21
tetradic
#21427D #7D2170 #7D5C21 #217D2E
square
#21427D #7D2170 #7D5C21 #217D2E
split-complementary
#21427D #7D2E21 #707D21
monochromatic
#070F1C #14284D #21427D #2E5CAD #4979CF

Accessibility & contrast

On white

9.81
#21427D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#21427D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21427D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21427D#FFFFFF#000000##FFFFFF
##21427D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#11407C
Tritanopia (blue-blind)
#005059
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #21427d;
/* rgb */ color: rgb(33, 66, 125);
/* oklch */ color: oklch(38.8% 0.107 261.0);
Tailwind
colors: {
  custom: {
    50: '#6975a3',
    500: '#21427d',
    950: '#000000',
  },
}
SCSS
$custom: #21427d;
$custom-light: #6975a3;
$custom-dark: #000000;
JSON
{
  "hex": "#21427d",
  "rgb": {
    "r": 33,
    "g": 66,
    "b": 125
  },
  "hsl": {
    "h": 218.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38795,
    "c": 0.10738,
    "h": 261
  },
  "luminance": 0.057
}

Semantic roles & 50–950 ramp

primary
#21427D
secondary
#B08B4A
accent
#AA46E1
background
#F6F7FA
surface
#EBEDF4
border
#C6C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #21427D

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

Preview Lab → · Contrast checker → · Palette generator →

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