#020F26#020F26

#020F26 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.2% C 0.052 H 257.7°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#020F26
RGBrgb(2, 15, 38)
HSLhsl(218, 90%, 8%)
HSVhsv(218, 95%, 15%)
CMYKcmyk(94.7%, 60.5%, 0%, 85.1%)
CIE-LABlab(4.47, 3.10, -16.59)
CIE-LCHlch(4.47, 16.88, 280.59°)
OKLaboklab(17.17% -0.0112 -0.0512)
OKLCHoklch(17.17% 0.052 257.7)
XYZxyz(0.5456, 0.4944, 1.9000)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020F26 #261902
analogous
#022126 #020F26 #070226
triadic
#020F26 #26020F #0F2602
tetradic
#020F26 #260221 #261902 #022607
square
#020F26 #260221 #261902 #022607
split-complementary
#020F26 #260702 #212602
monochromatic
#020B1D #020B1D #020F26 #052660 #083D9A

Accessibility & contrast

On white

19.11
#020F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#020F26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020F26
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020F26#FFFFFF#000000##FFFFFF
##020F261.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041127
Deuteranopia (green-blind)
#000E26
Tritanopia (blue-blind)
#001518
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #020f26;
/* rgb */ color: rgb(2, 15, 38);
/* oklch */ color: oklch(17.2% 0.052 257.7);
Tailwind
colors: {
  custom: {
    50: '#474e60',
    500: '#020f26',
    950: '#000000',
  },
}
SCSS
$custom: #020f26;
$custom-light: #474e60;
$custom-dark: #000000;
JSON
{
  "hex": "#020f26",
  "rgb": {
    "r": 2,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 218.333,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.17166,
    "c": 0.05239,
    "h": 257.7
  },
  "luminance": 0.00494
}

Semantic roles & 50–950 ramp

primary
#020F26
secondary
#6B4D18
accent
#B229FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000105
muted
#777779

Preview Lab

Preview with #020F26

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

Preview Lab → · Contrast checker → · Palette generator →

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