#21368D#21368D

#21368D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.5% C 0.146 H 268.0°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#21368D
RGBrgb(33, 54, 141)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 77%, 55%)
CMYKcmyk(76.6%, 61.7%, 0%, 44.7%)
CIE-LABlab(26.40, 24.32, -50.62)
CIE-LCHlch(26.40, 56.16, 295.66°)
OKLaboklab(37.49% -0.005 -0.1462)
OKLCHoklch(37.49% 0.146 268)
XYZxyz(6.7524, 4.8840, 25.7810)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21368D #8D7821
analogous
#216C8D #21368D #42218D
triadic
#21368D #8D2136 #368D21
tetradic
#21368D #8D216C #8D7821 #218D42
square
#21368D #8D216C #8D7821 #218D42
split-complementary
#21368D #8D4221 #6C8D21
monochromatic
#0A102A #15235B #21368D #2D49BF #526CD6

Accessibility & contrast

On white

10.62
#21368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#21368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21368D
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21368D#FFFFFF#000000##FFFFFF
##21368D1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21368d;
/* rgb */ color: rgb(33, 54, 141);
/* oklch */ color: oklch(37.5% 0.146 268.0);
Tailwind
colors: {
  custom: {
    50: '#6e6caf',
    500: '#21368d',
    950: '#000000',
  },
}
SCSS
$custom: #21368d;
$custom-light: #6e6caf;
$custom-dark: #000000;
JSON
{
  "hex": "#21368d",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 228.333,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37485,
    "c": 0.14631,
    "h": 268
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#21368D
secondary
#BAA550
accent
#C643E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21368D

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

Preview Lab → · Contrast checker → · Palette generator →

#21368D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva