#21328A#21328A

#21328A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.147 H 269.2°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#21328A
RGBrgb(33, 50, 138)
HSLhsl(230, 61%, 34%)
HSVhsv(230, 76%, 54%)
CMYKcmyk(76.1%, 63.8%, 0%, 45.9%)
CIE-LABlab(25.07, 25.89, -50.93)
CIE-LCHlch(25.07, 57.14, 296.94°)
OKLaboklab(36.42% -0.0021 -0.1472)
OKLCHoklch(36.42% 0.147 269.2)
XYZxyz(6.3537, 4.4388, 24.5618)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21328A #8A7921
analogous
#21668A #21328A #44218A
triadic
#21328A #8A2132 #328A21
tetradic
#21328A #8A2166 #8A7921 #218A44
square
#21328A #8A2166 #8A7921 #218A44
split-complementary
#21328A #8A4421 #668A21
monochromatic
#090E27 #152059 #21328A #2D44BB #5066D5

Accessibility & contrast

On white

11.12
#21328A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#21328A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21328A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21328A#FFFFFF#000000##FFFFFF
##21328A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #21328a;
/* rgb */ color: rgb(33, 50, 138);
/* oklch */ color: oklch(36.4% 0.147 269.2);
Tailwind
colors: {
  custom: {
    50: '#6d69ad',
    500: '#21328a',
    950: '#000000',
  },
}
SCSS
$custom: #21328a;
$custom-light: #6d69ad;
$custom-dark: #000000;
JSON
{
  "hex": "#21328a",
  "rgb": {
    "r": 33,
    "g": 50,
    "b": 138
  },
  "hsl": {
    "h": 230.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36418,
    "c": 0.1472,
    "h": 269.2
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#21328A
secondary
#B9A74E
accent
#CA43E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21328A

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

Preview Lab → · Contrast checker → · Palette generator →

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