#020A26#020A26

#020A26 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.8% C 0.060 H 263.7°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#020A26
RGBrgb(2, 10, 38)
HSLhsl(227, 90%, 8%)
HSVhsv(227, 95%, 15%)
CMYKcmyk(94.7%, 73.7%, 0%, 85.1%)
CIE-LABlab(3.34, 5.40, -18.34)
CIE-LCHlch(3.34, 19.12, 286.39°)
OKLaboklab(15.78% -0.0067 -0.06)
OKLCHoklch(15.78% 0.06 263.7)
XYZxyz(0.4833, 0.3699, 1.8793)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020A26 #261E02
analogous
#021C26 #020A26 #0C0226
triadic
#020A26 #26020A #0A2602
tetradic
#020A26 #26021C #261E02 #02260C
square
#020A26 #26021C #261E02 #02260C
split-complementary
#020A26 #260C02 #1C2602
monochromatic
#02081D #02081D #020A26 #051960 #08299A

Accessibility & contrast

On white

19.55
#020A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#020A26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020A26
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020A26#FFFFFF#000000##FFFFFF
##020A261.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E27
Deuteranopia (green-blind)
#000A25
Tritanopia (blue-blind)
#001116
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #020a26;
/* rgb */ color: rgb(2, 10, 38);
/* oklch */ color: oklch(15.8% 0.060 263.7);
Tailwind
colors: {
  custom: {
    50: '#474b60',
    500: '#020a26',
    950: '#000000',
  },
}
SCSS
$custom: #020a26;
$custom-light: #474b60;
$custom-dark: #000000;
JSON
{
  "hex": "#020a26",
  "rgb": {
    "r": 2,
    "g": 10,
    "b": 38
  },
  "hsl": {
    "h": 226.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.15778,
    "c": 0.06036,
    "h": 263.7
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#020A26
secondary
#6B5918
accent
#CF29FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000105
muted
#777779

Preview Lab

Preview with #020A26

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

Preview Lab → · Contrast checker → · Palette generator →

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