#21339C#21339C

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

Color values

HEX#21339C
RGBrgb(33, 51, 156)
HSLhsl(231, 65%, 37%)
HSVhsv(231, 79%, 61%)
CMYKcmyk(78.8%, 67.3%, 0%, 38.8%)
CIE-LABlab(26.99, 32.07, -58.87)
CIE-LCHlch(26.99, 67.04, 298.58°)
OKLaboklab(38.34% -0.0036 -0.1704)
OKLCHoklch(38.34% 0.17 268.8)
XYZxyz(7.8097, 5.0904, 32.0170)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21339C #9C8A21
analogous
#21709C #21339C #4D219C
triadic
#21339C #9C2133 #339C21
tetradic
#21339C #9C2170 #9C8A21 #219C4D
square
#21339C #9C2170 #9C8A21 #219C4D
split-complementary
#21339C #9C4D21 #709C21
monochromatic
#0C1237 #162269 #21339C #2C44CF #5B6EDC

Accessibility & contrast

On white

10.41
#21339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#21339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21339C
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21339C#FFFFFF#000000##FFFFFF
##21339C1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #21339c;
/* rgb */ color: rgb(33, 51, 156);
/* oklch */ color: oklch(38.3% 0.170 268.8);
Tailwind
colors: {
  custom: {
    50: '#726aba',
    500: '#21339c',
    950: '#000000',
  },
}
SCSS
$custom: #21339c;
$custom-light: #726aba;
$custom-dark: #000000;
JSON
{
  "hex": "#21339c",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 231.22,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38338,
    "c": 0.17045,
    "h": 268.8
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #21339C

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

Preview Lab → · Contrast checker → · Palette generator →

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