#021126#021126

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

Color values

HEX#021126
RGBrgb(2, 17, 38)
HSLhsl(215, 90%, 8%)
HSVhsv(215, 95%, 15%)
CMYKcmyk(94.7%, 55.3%, 0%, 85.1%)
CIE-LABlab(5.00, 2.00, -15.76)
CIE-LCHlch(5.00, 15.88, 277.25°)
OKLaboklab(17.75% -0.0132 -0.0475)
OKLCHoklch(17.75% 0.049 254.4)
XYZxyz(0.5752, 0.5537, 1.9099)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021126 #261702
analogous
#022326 #021126 #050226
triadic
#021126 #260211 #112602
tetradic
#021126 #260223 #261702 #022605
square
#021126 #260223 #261702 #022605
split-complementary
#021126 #260502 #232602
monochromatic
#020D1D #020D1D #021126 #052B60 #08459A

Accessibility & contrast

On white

18.91
#021126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021126
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021126#FFFFFF#000000##FFFFFF
##0211261.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071327
Deuteranopia (green-blind)
#020F26
Tritanopia (blue-blind)
#001619
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #021126;
/* rgb */ color: rgb(2, 17, 38);
/* oklch */ color: oklch(17.8% 0.049 254.4);
Tailwind
colors: {
  custom: {
    50: '#474f60',
    500: '#021126',
    950: '#000000',
  },
}
SCSS
$custom: #021126;
$custom-light: #474f60;
$custom-dark: #000000;
JSON
{
  "hex": "#021126",
  "rgb": {
    "r": 2,
    "g": 17,
    "b": 38
  },
  "hsl": {
    "h": 215,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.17754,
    "c": 0.04934,
    "h": 254.4
  },
  "luminance": 0.00554
}

Semantic roles & 50–950 ramp

primary
#021126
secondary
#6B4918
accent
#A629FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000105
muted
#777779

Preview Lab

Preview with #021126

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

Preview Lab → · Contrast checker → · Palette generator →

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