#020227#020227

#020227 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.5% C 0.078 H 269.4°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#020227
RGBrgb(2, 2, 39)
HSLhsl(240, 90%, 8%)
HSVhsv(240, 95%, 15%)
CMYKcmyk(94.9%, 94.9%, 0%, 84.7%)
CIE-LABlab(1.83, 9.01, -21.46)
CIE-LCHlch(1.83, 23.28, 292.78°)
OKLaboklab(13.46% -0.0008 -0.0779)
OKLCHoklch(13.46% 0.078 269.4)
XYZxyz(0.4128, 0.2028, 1.9364)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020227 #272702
analogous
#021427 #020227 #140227
triadic
#020227 #270202 #022702
tetradic
#020227 #270214 #272702 #022714
square
#020227 #270214 #272702 #022714
split-complementary
#020227 #271402 #142702
monochromatic
#01011D #01011D #020227 #050561 #08089B

Accessibility & contrast

On white

20.18
#020227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #020227
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020227#FFFFFF#000000##FFFFFF
##0202271.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000828
Deuteranopia (green-blind)
#000526
Tritanopia (blue-blind)
#000C13
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #020227;
/* rgb */ color: rgb(2, 2, 39);
/* oklch */ color: oklch(13.5% 0.078 269.4);
Tailwind
colors: {
  custom: {
    50: '#474761',
    500: '#020227',
    950: '#000000',
  },
}
SCSS
$custom: #020227;
$custom-light: #474761;
$custom-dark: #000000;
JSON
{
  "hex": "#020227",
  "rgb": {
    "r": 2,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 240,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.13455,
    "c": 0.07786,
    "h": 269.4
  },
  "luminance": 0.00203
}

Semantic roles & 50–950 ramp

primary
#020227
secondary
#6C6C18
accent
#FF29FF
background
#F4F4F5
surface
#E6E6EA
border
#C2C2C6
text
#000005
muted
#777779

Preview Lab

Preview with #020227

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

Preview Lab → · Contrast checker → · Palette generator →

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