#21368C#21368C

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

Color values

HEX#21368C
RGBrgb(33, 54, 140)
HSLhsl(228, 62%, 34%)
HSVhsv(228, 76%, 55%)
CMYKcmyk(76.4%, 61.4%, 0%, 45.1%)
CIE-LABlab(26.32, 23.93, -50.14)
CIE-LCHlch(26.32, 55.56, 295.51°)
OKLaboklab(37.39% -0.005 -0.1448)
OKLCHoklch(37.39% 0.145 268)
XYZxyz(6.6783, 4.8544, 25.3909)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21368C #8C7721
analogous
#216C8C #21368C #42218C
triadic
#21368C #8C2136 #368C21
tetradic
#21368C #8C216C #8C7721 #218C42
square
#21368C #8C216C #8C7721 #218C42
split-complementary
#21368C #8C4221 #6C8C21
monochromatic
#0A1029 #15235A #21368C #2D49BE #516BD6

Accessibility & contrast

On white

10.65
#21368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#21368C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21368C
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21368C#FFFFFF#000000##FFFFFF
##21368C1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004C5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #21368c;
/* rgb */ color: rgb(33, 54, 140);
/* oklch */ color: oklch(37.4% 0.145 268.0);
Tailwind
colors: {
  custom: {
    50: '#6d6cae',
    500: '#21368c',
    950: '#000000',
  },
}
SCSS
$custom: #21368c;
$custom-light: #6d6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#21368c",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 228.224,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.1449,
    "h": 268
  },
  "luminance": 0.04855
}

Semantic roles & 50–950 ramp

primary
#21368C
secondary
#B9A54F
accent
#C543E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #21368C

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

Preview Lab → · Contrast checker → · Palette generator →

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