#021027#021027

#021027 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.5% C 0.053 H 256.8°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#021027
RGBrgb(2, 16, 39)
HSLhsl(217, 90%, 8%)
HSVhsv(217, 95%, 15%)
CMYKcmyk(94.9%, 59%, 0%, 84.7%)
CIE-LABlab(4.79, 2.98, -16.85)
CIE-LCHlch(4.79, 17.11, 280.03°)
OKLaboklab(17.55% -0.012 -0.0512)
OKLCHoklch(17.55% 0.053 256.8)
XYZxyz(0.5764, 0.5299, 1.9910)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021027 #271902
analogous
#022227 #021027 #060227
triadic
#021027 #270210 #102702
tetradic
#021027 #270222 #271902 #022706
square
#021027 #270222 #271902 #022706
split-complementary
#021027 #270602 #222702
monochromatic
#010C1D #010C1D #021027 #052861 #08409B

Accessibility & contrast

On white

18.99
#021027 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021027
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021027#FFFFFF#000000##FFFFFF
##0210271.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051228
Deuteranopia (green-blind)
#000F27
Tritanopia (blue-blind)
#001619
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #021027;
/* rgb */ color: rgb(2, 16, 39);
/* oklch */ color: oklch(17.5% 0.053 256.8);
Tailwind
colors: {
  custom: {
    50: '#484e61',
    500: '#021027',
    950: '#000000',
  },
}
SCSS
$custom: #021027;
$custom-light: #484e61;
$custom-dark: #000000;
JSON
{
  "hex": "#021027",
  "rgb": {
    "r": 2,
    "g": 16,
    "b": 39
  },
  "hsl": {
    "h": 217.297,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.17549,
    "c": 0.05258,
    "h": 256.8
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#021027
secondary
#6C4D18
accent
#AE29FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000105
muted
#777779

Preview Lab

Preview with #021027

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

Preview Lab → · Contrast checker → · Palette generator →

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