#021227#021227

#021227 is a very dark, muted cyan. Relative luminance 0.006; OKLCH L 18.1% C 0.050 H 253.6°. Best body text is #FFFFFF at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#021227
RGBrgb(2, 18, 39)
HSLhsl(214, 90%, 8%)
HSVhsv(214, 95%, 15%)
CMYKcmyk(94.9%, 53.8%, 0%, 84.7%)
CIE-LABlab(5.35, 1.84, -15.98)
CIE-LCHlch(5.35, 16.08, 276.56°)
OKLaboklab(18.14% -0.014 -0.0476)
OKLCHoklch(18.14% 0.05 253.6)
XYZxyz(0.6074, 0.5919, 2.0013)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021227 #271702
analogous
#022427 #021227 #040227
triadic
#021227 #270212 #122702
tetradic
#021227 #270224 #271702 #022704
square
#021227 #270224 #271702 #022704
split-complementary
#021227 #270402 #242702
monochromatic
#010D1D #010D1D #021227 #052D61 #08489B

Accessibility & contrast

On white

18.78
#021227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#021227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021227
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021227#FFFFFF#000000##FFFFFF
##0212271.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081428
Deuteranopia (green-blind)
#031027
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #021227;
/* rgb */ color: rgb(2, 18, 39);
/* oklch */ color: oklch(18.1% 0.050 253.6);
Tailwind
colors: {
  custom: {
    50: '#484f61',
    500: '#021227',
    950: '#000000',
  },
}
SCSS
$custom: #021227;
$custom-light: #484f61;
$custom-dark: #000000;
JSON
{
  "hex": "#021227",
  "rgb": {
    "r": 2,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 214.054,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.18139,
    "c": 0.04959,
    "h": 253.6
  },
  "luminance": 0.00592
}

Semantic roles & 50–950 ramp

primary
#021227
secondary
#6C4818
accent
#A229FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000205
muted
#777879

Preview Lab

Preview with #021227

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

Preview Lab → · Contrast checker → · Palette generator →

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