#21339F#21339F

#21339F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.174 H 268.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#21339F
RGBrgb(33, 51, 159)
HSLhsl(231, 66%, 38%)
HSVhsv(231, 79%, 62%)
CMYKcmyk(79.2%, 67.9%, 0%, 37.6%)
CIE-LABlab(27.28, 33.19, -60.23)
CIE-LCHlch(27.28, 68.76, 298.86°)
OKLaboklab(38.64% -0.0038 -0.1744)
OKLCHoklch(38.64% 0.174 268.8)
XYZxyz(8.0669, 5.1933, 33.3714)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21339F #9F8D21
analogous
#21729F #21339F #4E219F
triadic
#21339F #9F2133 #339F21
tetradic
#21339F #9F2172 #9F8D21 #219F4E
square
#21339F #9F2172 #9F8D21 #219F4E
split-complementary
#21339F #9F4E21 #729F21
monochromatic
#0C123A #16236C #21339F #2C43D2 #5D6FDD

Accessibility & contrast

On white

10.30
#21339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#21339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21339F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21339F#FFFFFF#000000##FFFFFF
##21339F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21339f;
/* rgb */ color: rgb(33, 51, 159);
/* oklch */ color: oklch(38.6% 0.174 268.8);
Tailwind
colors: {
  custom: {
    50: '#726bbc',
    500: '#21339f',
    950: '#000000',
  },
}
SCSS
$custom: #21339f;
$custom-light: #726bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#21339f",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 231.429,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38635,
    "c": 0.1744,
    "h": 268.8
  },
  "luminance": 0.05194
}

Semantic roles & 50–950 ramp

primary
#21339F
secondary
#C2B35A
accent
#D03FE9
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #21339F

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

Preview Lab → · Contrast checker → · Palette generator →

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