#21177F#21177F

#21177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.163 H 275.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#21177F
RGBrgb(33, 23, 127)
HSLhsl(246, 69%, 29%)
HSVhsv(246, 82%, 50%)
CMYKcmyk(74%, 81.9%, 0%, 50.2%)
CIE-LABlab(17.77, 38.77, -56.03)
CIE-LCHlch(17.77, 68.13, 304.68°)
OKLaboklab(30.82% 0.0152 -0.162)
OKLCHoklch(30.82% 0.163 275.3)
XYZxyz(4.7631, 2.4680, 20.2999)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21177F #757F17
analogous
#17417F #21177F #55177F
triadic
#21177F #7F2117 #177F21
tetradic
#21177F #7F1741 #757F17 #177F55
square
#21177F #7F1741 #757F17 #177F55
split-complementary
#21177F #7F5517 #417F17
monochromatic
#07051A #140E4B #21177F #2E20B3 #4636DB

Accessibility & contrast

On white

14.06
#21177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #21177F
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21177F#FFFFFF#000000##FFFFFF
##21177F1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #21177f;
/* rgb */ color: rgb(33, 23, 127);
/* oklch */ color: oklch(30.8% 0.163 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d57a5',
    500: '#21177f',
    950: '#000000',
  },
}
SCSS
$custom: #21177f;
$custom-light: #6d57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21177f",
  "rgb": {
    "r": 33,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 245.769,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30823,
    "c": 0.1627,
    "h": 275.3
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#21177F
secondary
#A8B43E
accent
#EC3CDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21177F

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

Preview Lab → · Contrast checker → · Palette generator →

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