#021128#021128

#021128 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.9% C 0.053 H 256.0°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#021128
RGBrgb(2, 17, 40)
HSLhsl(216, 90%, 8%)
HSVhsv(216, 95%, 16%)
CMYKcmyk(95%, 57.5%, 0%, 84.3%)
CIE-LABlab(5.12, 2.85, -17.09)
CIE-LCHlch(5.12, 17.32, 279.46°)
OKLaboklab(17.93% -0.0127 -0.0512)
OKLCHoklch(17.93% 0.053 256)
XYZxyz(0.6083, 0.5669, 2.0844)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021128 #281902
analogous
#022428 #021128 #060228
triadic
#021128 #280211 #112802
tetradic
#021128 #280224 #281902 #022806
square
#021128 #280224 #281902 #022806
split-complementary
#021128 #280602 #242802
monochromatic
#010C1D #010C1D #021128 #052A62 #08439D

Accessibility & contrast

On white

18.86
#021128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021128
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021128#FFFFFF#000000##FFFFFF
##0211281.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051329
Deuteranopia (green-blind)
#010F28
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #021128;
/* rgb */ color: rgb(2, 17, 40);
/* oklch */ color: oklch(17.9% 0.053 256.0);
Tailwind
colors: {
  custom: {
    50: '#484f62',
    500: '#021128',
    950: '#000000',
  },
}
SCSS
$custom: #021128;
$custom-light: #484f62;
$custom-dark: #000000;
JSON
{
  "hex": "#021128",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 40
  },
  "hsl": {
    "h": 216.316,
    "s": 90.476,
    "l": 8.235
  },
  "oklch": {
    "l": 0.17932,
    "c": 0.05279,
    "h": 256
  },
  "luminance": 0.00567
}

Semantic roles & 50–950 ramp

primary
#021128
secondary
#6D4C19
accent
#AA29FF
background
#F4F4F5
surface
#E6E7EA
border
#C2C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #021128

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

Preview Lab → · Contrast checker → · Palette generator →

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