#21306A#21306A

#21306A is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.2% C 0.103 H 269.2°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#21306A
RGBrgb(33, 48, 106)
HSLhsl(228, 53%, 27%)
HSVhsv(228, 69%, 42%)
CMYKcmyk(68.9%, 54.7%, 0%, 58.4%)
CIE-LABlab(21.86, 14.75, -35.85)
CIE-LCHlch(21.86, 38.77, 292.36°)
OKLaboklab(33.19% -0.0014 -0.1029)
OKLCHoklch(33.19% 0.103 269.2)
XYZxyz(4.2848, 3.4775, 14.0783)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21306A #6A5B21
analogous
#21556A #21306A #36216A
triadic
#21306A #6A2130 #306A21
tetradic
#21306A #6A2155 #6A5B21 #216A36
square
#21306A #6A2155 #6A5B21 #216A36
split-complementary
#21306A #6A3621 #556A21
monochromatic
#070B17 #121B3B #21306A #304599 #415CC4

Accessibility & contrast

On white

12.38
#21306A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21306A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21306A#FFFFFF#000000##FFFFFF
##21306A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386C
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #21306a;
/* rgb */ color: rgb(33, 48, 106);
/* oklch */ color: oklch(33.2% 0.103 269.2);
Tailwind
colors: {
  custom: {
    50: '#656795',
    500: '#21306a',
    950: '#000000',
  },
}
SCSS
$custom: #21306a;
$custom-light: #656795;
$custom-dark: #000000;
JSON
{
  "hex": "#21306a",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 106
  },
  "hsl": {
    "h": 227.671,
    "s": 52.518,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33188,
    "c": 0.10289,
    "h": 269.2
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#21306A
secondary
#9E8C49
accent
#BE4CDC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #21306A

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

Preview Lab → · Contrast checker → · Palette generator →

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