#020223#020223

#020223 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.8% C 0.072 H 270.2°. Best body text is #FFFFFF at 20.28:1 contrast (WCAG AA passes).

Color values

HEX#020223
RGBrgb(2, 2, 35)
HSLhsl(240, 89%, 7%)
HSVhsv(240, 94%, 14%)
CMYKcmyk(94.3%, 94.3%, 0%, 86.3%)
CIE-LABlab(1.60, 7.42, -18.69)
CIE-LCHlch(1.60, 20.11, 291.66°)
OKLaboklab(12.83% 0.0003 -0.0719)
OKLCHoklch(12.83% 0.072 270.2)
XYZxyz(0.3500, 0.1776, 1.6056)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020223 #232302
analogous
#021323 #020223 #130223
triadic
#020223 #230202 #022302
tetradic
#020223 #230213 #232302 #022313
square
#020223 #230213 #232302 #022313
split-complementary
#020223 #231302 #132302
monochromatic
#02021D #02021D #020223 #05055D #090997

Accessibility & contrast

On white

20.28
#020223 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#020223 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020223
20.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020223#FFFFFF#000000##FFFFFF
##0202231.0020.281.0420.28
#FFFFFF20.281.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000724
Deuteranopia (green-blind)
#000522
Tritanopia (blue-blind)
#000A11
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #020223;
/* rgb */ color: rgb(2, 2, 35);
/* oklch */ color: oklch(12.8% 0.072 270.2);
Tailwind
colors: {
  custom: {
    50: '#47475e',
    500: '#020223',
    950: '#000000',
  },
}
SCSS
$custom: #020223;
$custom-light: #47475e;
$custom-dark: #000000;
JSON
{
  "hex": "#020223",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 35
  },
  "hsl": {
    "h": 240,
    "s": 89.189,
    "l": 7.255
  },
  "oklch": {
    "l": 0.12833,
    "c": 0.07187,
    "h": 270.2
  },
  "luminance": 0.00178
}

Semantic roles & 50–950 ramp

primary
#020223
secondary
#696918
accent
#FF29FF
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #020223

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

Preview Lab → · Contrast checker → · Palette generator →

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