#21306E#21306E

#21306E is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.109 H 269.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#21306E
RGBrgb(33, 48, 110)
HSLhsl(228, 54%, 28%)
HSVhsv(228, 70%, 43%)
CMYKcmyk(70%, 56.4%, 0%, 56.9%)
CIE-LABlab(22.17, 16.33, -37.94)
CIE-LCHlch(22.17, 41.30, 293.29°)
OKLaboklab(33.52% -0.0011 -0.109)
OKLCHoklch(33.52% 0.109 269.4)
XYZxyz(4.4977, 3.5626, 15.1995)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21306E #6E5F21
analogous
#21566E #21306E #39216E
triadic
#21306E #6E2130 #306E21
tetradic
#21306E #6E2156 #6E5F21 #216E39
square
#21306E #6E2156 #6E5F21 #216E39
split-complementary
#21306E #6E3921 #566E21
monochromatic
#070A18 #131B3F #21306E #2F459D #435DC7

Accessibility & contrast

On white

12.26
#21306E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#21306E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21306E
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21306E#FFFFFF#000000##FFFFFF
##21306E1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053970
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #21306e;
/* rgb */ color: rgb(33, 48, 110);
/* oklch */ color: oklch(33.5% 0.109 269.4);
Tailwind
colors: {
  custom: {
    50: '#666898',
    500: '#21306e',
    950: '#000000',
  },
}
SCSS
$custom: #21306e;
$custom-light: #666898;
$custom-dark: #000000;
JSON
{
  "hex": "#21306e",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 110
  },
  "hsl": {
    "h": 228.312,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33517,
    "c": 0.10904,
    "h": 269.4
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#21306E
secondary
#A29049
accent
#C14BDD
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #21306E

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

Preview Lab → · Contrast checker → · Palette generator →

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