#21339A#21339A

#21339A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.168 H 268.8°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#21339A
RGBrgb(33, 51, 154)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 60%)
CMYKcmyk(78.6%, 66.9%, 0%, 39.6%)
CIE-LABlab(26.80, 31.32, -57.96)
CIE-LCHlch(26.80, 65.88, 298.38°)
OKLaboklab(38.14% -0.0035 -0.1677)
OKLCHoklch(38.14% 0.168 268.8)
XYZxyz(7.6417, 5.0232, 31.1324)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21339A #9A8821
analogous
#21709A #21339A #4B219A
triadic
#21339A #9A2133 #339A21
tetradic
#21339A #9A2170 #9A8821 #219A4B
square
#21339A #9A2170 #9A8821 #219A4B
split-complementary
#21339A #9A4B21 #709A21
monochromatic
#0B1235 #162268 #21339A #2C44CC #5A6DDC

Accessibility & contrast

On white

10.47
#21339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21339A
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21339A#FFFFFF#000000##FFFFFF
##21339A1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003A98
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21339a;
/* rgb */ color: rgb(33, 51, 154);
/* oklch */ color: oklch(38.1% 0.168 268.8);
Tailwind
colors: {
  custom: {
    50: '#716ab9',
    500: '#21339a',
    950: '#000000',
  },
}
SCSS
$custom: #21339a;
$custom-light: #716ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#21339a",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 231.074,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.16779,
    "h": 268.8
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21339A

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

Preview Lab → · Contrast checker → · Palette generator →

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