#21306F#21306F

#21306F is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.111 H 269.5°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#21306F
RGBrgb(33, 48, 111)
HSLhsl(228, 54%, 28%)
HSVhsv(228, 70%, 44%)
CMYKcmyk(70.3%, 56.8%, 0%, 56.5%)
CIE-LABlab(22.25, 16.72, -38.46)
CIE-LCHlch(22.25, 41.94, 293.50°)
OKLaboklab(33.6% -0.001 -0.1105)
OKLCHoklch(33.6% 0.111 269.5)
XYZxyz(4.5524, 3.5845, 15.4878)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21306F #6F6021
analogous
#21576F #21306F #39216F
triadic
#21306F #6F2130 #306F21
tetradic
#21306F #6F2157 #6F6021 #216F39
square
#21306F #6F2157 #6F6021 #216F39
split-complementary
#21306F #6F3921 #576F21
monochromatic
#070A18 #131C40 #21306F #2F449E #435DC7

Accessibility & contrast

On white

12.23
#21306F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#21306F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21306F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21306F#FFFFFF#000000##FFFFFF
##21306F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21306f;
/* rgb */ color: rgb(33, 48, 111);
/* oklch */ color: oklch(33.6% 0.111 269.5);
Tailwind
colors: {
  custom: {
    50: '#676899',
    500: '#21306f',
    950: '#000000',
  },
}
SCSS
$custom: #21306f;
$custom-light: #676899;
$custom-dark: #000000;
JSON
{
  "hex": "#21306f",
  "rgb": {
    "r": 33,
    "g": 48,
    "b": 111
  },
  "hsl": {
    "h": 228.462,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33601,
    "c": 0.11055,
    "h": 269.5
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#21306F
secondary
#A39149
accent
#C14ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #21306F

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

Preview Lab → · Contrast checker → · Palette generator →

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