#21339B#21339B

#21339B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.169 H 268.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#21339B
RGBrgb(33, 51, 155)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 61%)
CMYKcmyk(78.7%, 67.1%, 0%, 39.2%)
CIE-LABlab(26.90, 31.69, -58.42)
CIE-LCHlch(26.90, 66.46, 298.48°)
OKLaboklab(38.24% -0.0035 -0.1691)
OKLCHoklch(38.24% 0.169 268.8)
XYZxyz(7.7254, 5.0567, 31.5729)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21339B #9B8921
analogous
#21709B #21339B #4C219B
triadic
#21339B #9B2133 #339B21
tetradic
#21339B #9B2170 #9B8921 #219B4C
square
#21339B #9B2170 #9B8921 #219B4C
split-complementary
#21339B #9B4C21 #709B21
monochromatic
#0C1236 #162269 #21339B #2C44CD #5A6EDC

Accessibility & contrast

On white

10.44
#21339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#21339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21339B
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21339B#FFFFFF#000000##FFFFFF
##21339B1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21339b;
/* rgb */ color: rgb(33, 51, 155);
/* oklch */ color: oklch(38.2% 0.169 268.8);
Tailwind
colors: {
  custom: {
    50: '#716ab9',
    500: '#21339b',
    950: '#000000',
  },
}
SCSS
$custom: #21339b;
$custom-light: #716ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#21339b",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 231.148,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38239,
    "c": 0.16912,
    "h": 268.8
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#21339B
secondary
#C0B158
accent
#CF40E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21339B

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

Preview Lab → · Contrast checker → · Palette generator →

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