#21306C#21306C

#21306C is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.106 H 269.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#21306C
RGBrgb(33, 48, 108)
HSLhsl(228, 53%, 28%)
HSVhsv(228, 69%, 42%)
CMYKcmyk(69.4%, 55.6%, 0%, 57.6%)
CIE-LABlab(22.01, 15.54, -36.90)
CIE-LCHlch(22.01, 40.04, 292.84°)
OKLaboklab(33.35% -0.0012 -0.106)
OKLCHoklch(33.35% 0.106 269.3)
XYZxyz(4.3900, 3.5195, 14.6324)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21306C #6C5D21
analogous
#21556C #21306C #38216C
triadic
#21306C #6C2130 #306C21
tetradic
#21306C #6C2155 #6C5D21 #216C38
square
#21306C #6C2155 #6C5D21 #216C38
split-complementary
#21306C #6C3821 #556C21
monochromatic
#070A17 #131B3D #21306C #2F459B #425CC5

Accessibility & contrast

On white

12.32
#21306C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#21306C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21306C
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21306C#FFFFFF#000000##FFFFFF
##21306C1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09386E
Deuteranopia (green-blind)
#00316B
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21306c;
/* rgb */ color: rgb(33, 48, 108);
/* oklch */ color: oklch(33.4% 0.106 269.3);
Tailwind
colors: {
  custom: {
    50: '#666797',
    500: '#21306c',
    950: '#000000',
  },
}
SCSS
$custom: #21306c;
$custom-light: #666797;
$custom-dark: #000000;
JSON
{
  "hex": "#21306c",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 108
  },
  "hsl": {
    "h": 228,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33352,
    "c": 0.10598,
    "h": 269.3
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#21306C
secondary
#A08E49
accent
#C04BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #21306C

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

Preview Lab → · Contrast checker → · Palette generator →

#21306C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva