#21367F#21367F

#21367F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.3% C 0.126 H 267.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#21367F
RGBrgb(33, 54, 127)
HSLhsl(227, 59%, 31%)
HSVhsv(227, 74%, 50%)
CMYKcmyk(74%, 57.5%, 0%, 50.2%)
CIE-LABlab(25.24, 18.82, -43.78)
CIE-LCHlch(25.24, 47.65, 293.26°)
OKLaboklab(36.25% -0.0055 -0.1261)
OKLCHoklch(36.25% 0.126 267.5)
XYZxyz(5.7758, 4.4934, 20.6375)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21367F #7F6A21
analogous
#21657F #21367F #3B217F
triadic
#21367F #7F2136 #367F21
tetradic
#21367F #7F2165 #7F6A21 #217F3B
square
#21367F #7F2165 #7F6A21 #217F3B
split-complementary
#21367F #7F3B21 #657F21
monochromatic
#080D1E #14214E #21367F #2E4BB0 #4A68D0

Accessibility & contrast

On white

11.06
#21367F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#21367F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21367F
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21367F#FFFFFF#000000##FFFFFF
##21367F1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#00387E
Tritanopia (blue-blind)
#004855
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #21367f;
/* rgb */ color: rgb(33, 54, 127);
/* oklch */ color: oklch(36.3% 0.126 267.5);
Tailwind
colors: {
  custom: {
    50: '#6a6ca5',
    500: '#21367f',
    950: '#000000',
  },
}
SCSS
$custom: #21367f;
$custom-light: #6a6ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#21367f",
  "rgb": {
    "r": 33,
    "g": 54,
    "b": 127
  },
  "hsl": {
    "h": 226.596,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36252,
    "c": 0.12624,
    "h": 267.5
  },
  "luminance": 0.04494
}

Semantic roles & 50–950 ramp

primary
#21367F
secondary
#B29B4A
accent
#BF46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #21367F

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

Preview Lab → · Contrast checker → · Palette generator →

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