#21368F#21368F

#21368F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.149 H 268.1°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#21368F
RGBrgb(33, 54, 143)
HSLhsl(229, 63%, 35%)
HSVhsv(229, 77%, 56%)
CMYKcmyk(76.9%, 62.2%, 0%, 43.9%)
CIE-LABlab(26.57, 25.09, -51.58)
CIE-LCHlch(26.57, 57.36, 295.94°)
OKLaboklab(37.67% -0.005 -0.149)
OKLCHoklch(37.67% 0.149 268.1)
XYZxyz(6.9026, 4.9441, 26.5718)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21368F #8F7A21
analogous
#216D8F #21368F #43218F
triadic
#21368F #8F2136 #368F21
tetradic
#21368F #8F216D #8F7A21 #218F43
square
#21368F #8F216D #8F7A21 #218F43
split-complementary
#21368F #8F4321 #6D8F21
monochromatic
#0A102C #16235D #21368F #2C49C1 #536CD7

Accessibility & contrast

On white

10.56
#21368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#21368F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21368F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21368F#FFFFFF#000000##FFFFFF
##21368F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21368f;
/* rgb */ color: rgb(33, 54, 143);
/* oklch */ color: oklch(37.7% 0.149 268.1);
Tailwind
colors: {
  custom: {
    50: '#6e6cb1',
    500: '#21368f',
    950: '#000000',
  },
}
SCSS
$custom: #21368f;
$custom-light: #6e6cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#21368f",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 228.545,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37667,
    "c": 0.1491,
    "h": 268.1
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#21368F
secondary
#BBA751
accent
#C642E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #21368F

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

Preview Lab → · Contrast checker → · Palette generator →

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