#21348A#21348A

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

Color values

HEX#21348A
RGBrgb(33, 52, 138)
HSLhsl(229, 61%, 34%)
HSVhsv(229, 76%, 54%)
CMYKcmyk(76.1%, 62.3%, 0%, 45.9%)
CIE-LABlab(25.60, 24.52, -50.06)
CIE-LCHlch(25.60, 55.75, 296.09°)
OKLaboklab(36.81% -0.0036 -0.1446)
OKLCHoklch(36.81% 0.145 268.6)
XYZxyz(6.4411, 4.6136, 24.5909)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21348A #8A7721
analogous
#21688A #21348A #42218A
triadic
#21348A #8A2134 #348A21
tetradic
#21348A #8A2168 #8A7721 #218A42
square
#21348A #8A2168 #8A7721 #218A42
split-complementary
#21348A #8A4221 #688A21
monochromatic
#090F27 #152159 #21348A #2D47BB #5068D5

Accessibility & contrast

On white

10.92
#21348A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#21348A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21348A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21348A#FFFFFF#000000##FFFFFF
##21348A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21348a;
/* rgb */ color: rgb(33, 52, 138);
/* oklch */ color: oklch(36.8% 0.145 268.6);
Tailwind
colors: {
  custom: {
    50: '#6d6bad',
    500: '#21348a',
    950: '#000000',
  },
}
SCSS
$custom: #21348a;
$custom-light: #6d6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#21348a",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 138
  },
  "hsl": {
    "h": 229.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36812,
    "c": 0.14464,
    "h": 268.6
  },
  "luminance": 0.04614
}

Semantic roles & 50–950 ramp

primary
#21348A
secondary
#B9A54E
accent
#C743E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21348A

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

Preview Lab → · Contrast checker → · Palette generator →

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