#21348E#21348E

#21348E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.150 H 268.6°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#21348E
RGBrgb(33, 52, 142)
HSLhsl(230, 62%, 34%)
HSVhsv(230, 77%, 56%)
CMYKcmyk(76.8%, 63.4%, 0%, 44.3%)
CIE-LABlab(25.96, 26.07, -51.97)
CIE-LCHlch(25.96, 58.14, 296.64°)
OKLaboklab(37.18% -0.0036 -0.1502)
OKLCHoklch(37.18% 0.15 268.6)
XYZxyz(6.7360, 4.7316, 26.1442)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21348E #8E7B21
analogous
#216B8E #21348E #44218E
triadic
#21348E #8E2134 #348E21
tetradic
#21348E #8E216B #8E7B21 #218E44
square
#21348E #8E216B #8E7B21 #218E44
split-complementary
#21348E #8E4421 #6B8E21
monochromatic
#0A102B #15225C #21348E #2D46C0 #526AD7

Accessibility & contrast

On white

10.79
#21348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#21348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21348E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21348E#FFFFFF#000000##FFFFFF
##21348E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #21348e;
/* rgb */ color: rgb(33, 52, 142);
/* oklch */ color: oklch(37.2% 0.150 268.6);
Tailwind
colors: {
  custom: {
    50: '#6e6bb0',
    500: '#21348e',
    950: '#000000',
  },
}
SCSS
$custom: #21348e;
$custom-light: #6e6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#21348e",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 229.541,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.15023,
    "h": 268.6
  },
  "luminance": 0.04732
}

Semantic roles & 50–950 ramp

primary
#21348E
secondary
#BAA850
accent
#C942E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #21348E

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

Preview Lab → · Contrast checker → · Palette generator →

#21348E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva