#21348C#21348C

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

Color values

HEX#21348C
RGBrgb(33, 52, 140)
HSLhsl(229, 62%, 34%)
HSVhsv(229, 76%, 55%)
CMYKcmyk(76.4%, 62.9%, 0%, 45.1%)
CIE-LABlab(25.78, 25.30, -51.02)
CIE-LCHlch(25.78, 56.95, 296.37°)
OKLaboklab(37% -0.0036 -0.1474)
OKLCHoklch(37% 0.147 268.6)
XYZxyz(6.5872, 4.6721, 25.3605)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21348C #8C7921
analogous
#216A8C #21348C #44218C
triadic
#21348C #8C2134 #348C21
tetradic
#21348C #8C216A #8C7921 #218C44
square
#21348C #8C216A #8C7921 #218C44
split-complementary
#21348C #8C4421 #6A8C21
monochromatic
#0A0F29 #15225A #21348C #2D46BE #5169D6

Accessibility & contrast

On white

10.85
#21348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#21348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21348C
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21348C#FFFFFF#000000##FFFFFF
##21348C1.0010.851.9310.85
#FFFFFF10.851.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21348c;
/* rgb */ color: rgb(33, 52, 140);
/* oklch */ color: oklch(37.0% 0.147 268.6);
Tailwind
colors: {
  custom: {
    50: '#6d6bae',
    500: '#21348c',
    950: '#000000',
  },
}
SCSS
$custom: #21348c;
$custom-light: #6d6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#21348c",
  "rgb": {
    "r": 33,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 229.346,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.14745,
    "h": 268.6
  },
  "luminance": 0.04673
}

Semantic roles & 50–950 ramp

primary
#21348C
secondary
#B9A74F
accent
#C843E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #21348C

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

Preview Lab → · Contrast checker → · Palette generator →

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