#021127#021127

#021127 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.8% C 0.051 H 255.3°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#021127
RGBrgb(2, 17, 39)
HSLhsl(216, 90%, 8%)
HSVhsv(216, 95%, 15%)
CMYKcmyk(94.9%, 56.4%, 0%, 84.7%)
CIE-LABlab(5.06, 2.42, -16.42)
CIE-LCHlch(5.06, 16.60, 278.39°)
OKLaboklab(17.84% -0.013 -0.0494)
OKLCHoklch(17.84% 0.051 255.3)
XYZxyz(0.5916, 0.5602, 1.9960)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021127 #271802
analogous
#022327 #021127 #060227
triadic
#021127 #270211 #112702
tetradic
#021127 #270223 #271802 #022706
square
#021127 #270223 #271802 #022706
split-complementary
#021127 #270602 #232702
monochromatic
#010D1D #010D1D #021127 #052A61 #08449B

Accessibility & contrast

On white

18.88
#021127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#021127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021127
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021127#FFFFFF#000000##FFFFFF
##0211271.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061328
Deuteranopia (green-blind)
#010F27
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #021127;
/* rgb */ color: rgb(2, 17, 39);
/* oklch */ color: oklch(17.8% 0.051 255.3);
Tailwind
colors: {
  custom: {
    50: '#484f61',
    500: '#021127',
    950: '#000000',
  },
}
SCSS
$custom: #021127;
$custom-light: #484f61;
$custom-dark: #000000;
JSON
{
  "hex": "#021127",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 215.676,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17842,
    "c": 0.05107,
    "h": 255.3
  },
  "luminance": 0.0056
}

Semantic roles & 50–950 ramp

primary
#021127
secondary
#6C4A18
accent
#A829FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000105
muted
#777779

Preview Lab

Preview with #021127

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

Preview Lab → · Contrast checker → · Palette generator →

#021127 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva