#020F36#020F36

#020F36 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.079 H 263.2°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#020F36
RGBrgb(2, 15, 54)
HSLhsl(225, 93%, 11%)
HSVhsv(225, 96%, 21%)
CMYKcmyk(96.3%, 72.2%, 0%, 78.8%)
CIE-LABlab(5.61, 11.11, -26.72)
CIE-LCHlch(5.61, 28.94, 292.58°)
OKLaboklab(18.83% -0.0093 -0.0788)
OKLCHoklch(18.83% 0.079 263.2)
XYZxyz(0.8615, 0.6208, 3.5637)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F36 #362902
analogous
#022936 #020F36 #0F0236
triadic
#020F36 #36020F #0F3602
tetradic
#020F36 #360229 #362902 #02360F
square
#020F36 #360229 #362902 #02360F
split-complementary
#020F36 #360F02 #293602
monochromatic
#01081E #01081E #020F36 #041F71 #0630AC

Accessibility & contrast

On white

18.68
#020F36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#020F36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F36
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F36#FFFFFF#000000##FFFFFF
##020F361.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#001035
Tritanopia (blue-blind)
#001920
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #020f36;
/* rgb */ color: rgb(2, 15, 54);
/* oklch */ color: oklch(18.8% 0.079 263.2);
Tailwind
colors: {
  custom: {
    50: '#4c4d6d',
    500: '#020f36',
    950: '#000000',
  },
}
SCSS
$custom: #020f36;
$custom-light: #4c4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#020f36",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 54
  },
  "hsl": {
    "h": 225,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18834,
    "c": 0.07938,
    "h": 263.2
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#020F36
secondary
#7A621A
accent
#C929FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010107
muted
#77777A

Preview Lab

Preview with #020F36

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

Preview Lab → · Contrast checker → · Palette generator →

#020F36 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva