#21348D#21348D

#21348D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.149 H 268.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#21348D
RGBrgb(33, 52, 141)
HSLhsl(229, 62%, 34%)
HSVhsv(229, 77%, 55%)
CMYKcmyk(76.6%, 63.1%, 0%, 44.7%)
CIE-LABlab(25.87, 25.68, -51.50)
CIE-LCHlch(25.87, 57.55, 296.51°)
OKLaboklab(37.09% -0.0036 -0.1488)
OKLCHoklch(37.09% 0.149 268.6)
XYZxyz(6.6612, 4.7017, 25.7506)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21348D #8D7A21
analogous
#216A8D #21348D #44218D
triadic
#21348D #8D2134 #348D21
tetradic
#21348D #8D216A #8D7A21 #218D44
square
#21348D #8D216A #8D7A21 #218D44
split-complementary
#21348D #8D4421 #6A8D21
monochromatic
#0A0F2A #15225B #21348D #2D46BF #5269D6

Accessibility & contrast

On white

10.82
#21348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#21348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21348D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21348D#FFFFFF#000000##FFFFFF
##21348D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21348d;
/* rgb */ color: rgb(33, 52, 141);
/* oklch */ color: oklch(37.1% 0.149 268.6);
Tailwind
colors: {
  custom: {
    50: '#6e6baf',
    500: '#21348d',
    950: '#000000',
  },
}
SCSS
$custom: #21348d;
$custom-light: #6e6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#21348d",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 229.444,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37088,
    "c": 0.14884,
    "h": 268.6
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#21348D
secondary
#BAA750
accent
#C943E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21348D

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

Preview Lab → · Contrast checker → · Palette generator →

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