#21338C#21338C

#21338C is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.149 H 268.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#21338C
RGBrgb(33, 51, 140)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 76%, 55%)
CMYKcmyk(76.4%, 63.6%, 0%, 45.1%)
CIE-LABlab(25.51, 25.98, -51.45)
CIE-LCHlch(25.51, 57.64, 296.79°)
OKLaboklab(36.8% -0.0029 -0.1487)
OKLCHoklch(36.8% 0.149 268.9)
XYZxyz(6.5430, 4.5837, 25.3458)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21338C #8C7A21
analogous
#21698C #21338C #45218C
triadic
#21338C #8C2133 #338C21
tetradic
#21338C #8C2169 #8C7A21 #218C45
square
#21338C #8C2169 #8C7A21 #218C45
split-complementary
#21338C #8C4521 #698C21
monochromatic
#0A0F29 #15215A #21338C #2D45BE #5168D6

Accessibility & contrast

On white

10.96
#21338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#21338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21338C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21338C#FFFFFF#000000##FFFFFF
##21338C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21338c;
/* rgb */ color: rgb(33, 51, 140);
/* oklch */ color: oklch(36.8% 0.149 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e6aae',
    500: '#21338c',
    950: '#000000',
  },
}
SCSS
$custom: #21338c;
$custom-light: #6e6aae;
$custom-dark: #000000;
JSON
{
  "hex": "#21338c",
  "rgb": {
    "r": 33,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 229.907,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.368,
    "c": 0.14872,
    "h": 268.9
  },
  "luminance": 0.04584
}

Semantic roles & 50–950 ramp

primary
#21338C
secondary
#B9A84F
accent
#CA43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21338C

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

Preview Lab → · Contrast checker → · Palette generator →

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