#21348B#21348B

#21348B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.146 H 268.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#21348B
RGBrgb(33, 52, 139)
HSLhsl(229, 62%, 34%)
HSVhsv(229, 76%, 55%)
CMYKcmyk(76.3%, 62.6%, 0%, 45.5%)
CIE-LABlab(25.69, 24.91, -50.54)
CIE-LCHlch(25.69, 56.35, 296.24°)
OKLaboklab(36.9% -0.0036 -0.146)
OKLCHoklch(36.9% 0.146 268.6)
XYZxyz(6.5138, 4.6427, 24.9739)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21348B #8B7821
analogous
#21698B #21348B #43218B
triadic
#21348B #8B2134 #348B21
tetradic
#21348B #8B2169 #8B7821 #218B43
square
#21348B #8B2169 #8B7821 #218B43
split-complementary
#21348B #8B4321 #698B21
monochromatic
#0A0F28 #15215A #21348B #2D47BC #5169D6

Accessibility & contrast

On white

10.89
#21348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21348B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21348B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21348B#FFFFFF#000000##FFFFFF
##21348B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21348b;
/* rgb */ color: rgb(33, 52, 139);
/* oklch */ color: oklch(36.9% 0.146 268.6);
Tailwind
colors: {
  custom: {
    50: '#6d6bae',
    500: '#21348b',
    950: '#000000',
  },
}
SCSS
$custom: #21348b;
$custom-light: #6d6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#21348b",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 229.245,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36903,
    "c": 0.14605,
    "h": 268.6
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#21348B
secondary
#B9A64F
accent
#C843E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21348B

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

Preview Lab → · Contrast checker → · Palette generator →

#21348B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva