#21127F#21127F

#21127F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.167 H 275.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#21127F
RGBrgb(33, 18, 127)
HSLhsl(248, 75%, 28%)
HSVhsv(248, 86%, 50%)
CMYKcmyk(74%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.93, 41.23, -57.42)
CIE-LCHlch(16.93, 70.69, 305.68°)
OKLaboklab(30.24% 0.0172 -0.166)
OKLCHoklch(30.24% 0.167 275.9)
XYZxyz(4.6730, 2.2878, 20.2699)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21127F #707F12
analogous
#12397F #21127F #57127F
triadic
#21127F #7F2112 #127F21
tetradic
#21127F #7F1239 #707F12 #127F57
square
#21127F #7F1239 #707F12 #127F57
split-complementary
#21127F #7F5712 #397F12
monochromatic
#07041B #130A49 #21127F #2F1AB5 #442BE1

Accessibility & contrast

On white

14.41
#21127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#21127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21127F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21127F#FFFFFF#000000##FFFFFF
##21127F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #21127f;
/* rgb */ color: rgb(33, 18, 127);
/* oklch */ color: oklch(30.2% 0.167 275.9);
Tailwind
colors: {
  custom: {
    50: '#6d54a5',
    500: '#21127f',
    950: '#000000',
  },
}
SCSS
$custom: #21127f;
$custom-light: #6d54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#21127f",
  "rgb": {
    "r": 33,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 248.257,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3024,
    "c": 0.16684,
    "h": 275.9
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#21127F
secondary
#A4B538
accent
#F236D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #21127F

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

Preview Lab → · Contrast checker → · Palette generator →

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