#21349B#21349B

#21349B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.168 H 268.6°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#21349B
RGBrgb(33, 52, 155)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 61%)
CMYKcmyk(78.7%, 66.5%, 0%, 39.2%)
CIE-LABlab(27.14, 31.03, -58.01)
CIE-LCHlch(27.14, 65.79, 298.14°)
OKLaboklab(38.42% -0.0041 -0.1679)
OKLCHoklch(38.42% 0.168 268.6)
XYZxyz(7.7695, 5.1450, 31.5876)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21349B #9B8821
analogous
#21719B #21349B #4B219B
triadic
#21349B #9B2134 #349B21
tetradic
#21349B #9B2171 #9B8821 #219B4B
square
#21349B #9B2171 #9B8821 #219B4B
split-complementary
#21349B #9B4B21 #719B21
monochromatic
#0C1236 #162369 #21349B #2C45CD #5A6FDC

Accessibility & contrast

On white

10.35
#21349B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#21349B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21349B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21349B#FFFFFF#000000##FFFFFF
##21349B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21349b;
/* rgb */ color: rgb(33, 52, 155);
/* oklch */ color: oklch(38.4% 0.168 268.6);
Tailwind
colors: {
  custom: {
    50: '#716bb9',
    500: '#21349b',
    950: '#000000',
  },
}
SCSS
$custom: #21349b;
$custom-light: #716bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#21349b",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 155
  },
  "hsl": {
    "h": 230.656,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38421,
    "c": 0.16793,
    "h": 268.6
  },
  "luminance": 0.05146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21349B

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

Preview Lab → · Contrast checker → · Palette generator →

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