#21349D#21349D

#21349D is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.171 H 268.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#21349D
RGBrgb(33, 52, 157)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 62%)
CMYKcmyk(79%, 66.9%, 0%, 38.4%)
CIE-LABlab(27.33, 31.79, -58.92)
CIE-LCHlch(27.33, 66.95, 298.35°)
OKLaboklab(38.62% -0.0042 -0.1705)
OKLCHoklch(38.62% 0.171 268.6)
XYZxyz(7.9389, 5.2127, 32.4795)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21349D #9D8A21
analogous
#21729D #21349D #4C219D
triadic
#21349D #9D2134 #349D21
tetradic
#21349D #9D2172 #9D8A21 #219D4C
square
#21349D #9D2172 #9D8A21 #219D4C
split-complementary
#21349D #9D4C21 #729D21
monochromatic
#0C1338 #16236A #21349D #2C45D0 #5C6FDD

Accessibility & contrast

On white

10.28
#21349D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#21349D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21349D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21349D#FFFFFF#000000##FFFFFF
##21349D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#003B9B
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #21349d;
/* rgb */ color: rgb(33, 52, 157);
/* oklch */ color: oklch(38.6% 0.171 268.6);
Tailwind
colors: {
  custom: {
    50: '#726bbb',
    500: '#21349d',
    950: '#000000',
  },
}
SCSS
$custom: #21349d;
$custom-light: #726bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#21349d",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 157
  },
  "hsl": {
    "h": 230.806,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38617,
    "c": 0.17059,
    "h": 268.6
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#21349D
secondary
#C1B159
accent
#CE40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21349D

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

Preview Lab → · Contrast checker → · Palette generator →

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