#21167F#21167F

#21167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.164 H 275.5°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#21167F
RGBrgb(33, 22, 127)
HSLhsl(246, 70%, 29%)
HSVhsv(246, 83%, 50%)
CMYKcmyk(74%, 82.7%, 0%, 50.2%)
CIE-LABlab(17.59, 39.28, -56.32)
CIE-LCHlch(17.59, 68.67, 304.90°)
OKLaboklab(30.7% 0.0156 -0.1628)
OKLCHoklch(30.7% 0.164 275.5)
XYZxyz(4.7436, 2.4290, 20.2934)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21167F #747F16
analogous
#16407F #21167F #56167F
triadic
#21167F #7F2116 #167F21
tetradic
#21167F #7F1640 #747F16 #167F56
square
#21167F #7F1640 #747F16 #167F56
split-complementary
#21167F #7F5616 #407F16
monochromatic
#07051A #130D4B #21167F #2F1FB3 #4534DC

Accessibility & contrast

On white

14.13
#21167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#21167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21167F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21167F#FFFFFF#000000##FFFFFF
##21167F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #21167f;
/* rgb */ color: rgb(33, 22, 127);
/* oklch */ color: oklch(30.7% 0.164 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d56a5',
    500: '#21167f',
    950: '#000000',
  },
}
SCSS
$custom: #21167f;
$custom-light: #6d56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21167f",
  "rgb": {
    "r": 33,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 246.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30699,
    "c": 0.16358,
    "h": 275.5
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#21167F
secondary
#A7B43D
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21167F

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

Preview Lab → · Contrast checker → · Palette generator →

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