#020126#020126

#020126 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.9% C 0.079 H 270.0°. Best body text is #FFFFFF at 20.29:1 contrast (WCAG AA passes).

Color values

HEX#020126
RGBrgb(2, 1, 38)
HSLhsl(242, 95%, 8%)
HSVhsv(242, 97%, 15%)
CMYKcmyk(94.7%, 97.4%, 0%, 85.1%)
CIE-LABlab(1.58, 9.00, -21.08)
CIE-LCHlch(1.58, 22.92, 293.12°)
OKLaboklab(12.92% 0.0001 -0.079)
OKLCHoklch(12.92% 0.079 270)
XYZxyz(0.3856, 0.1745, 1.8467)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#020126 #252601
analogous
#011226 #020126 #150126
triadic
#020126 #260201 #012602
tetradic
#020126 #260112 #252601 #012615
square
#020126 #260112 #252601 #012615
split-complementary
#020126 #261501 #122601
monochromatic
#02011E #02011E #020126 #050362 #08049D

Accessibility & contrast

On white

20.29
#020126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#020126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #020126
20.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##020126#FFFFFF#000000##FFFFFF
##0201261.0020.291.0320.29
#FFFFFF20.291.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000727
Deuteranopia (green-blind)
#000425
Tritanopia (blue-blind)
#000A12
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #020126;
/* rgb */ color: rgb(2, 1, 38);
/* oklch */ color: oklch(12.9% 0.079 270.0);
Tailwind
colors: {
  custom: {
    50: '#474760',
    500: '#020126',
    950: '#000000',
  },
}
SCSS
$custom: #020126;
$custom-light: #474760;
$custom-dark: #000000;
JSON
{
  "hex": "#020126",
  "rgb": {
    "r": 2,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 241.622,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.12916,
    "c": 0.07897,
    "h": 270
  },
  "luminance": 0.00175
}

Semantic roles & 50–950 ramp

primary
#020126
secondary
#6A6D16
accent
#FF29F9
background
#F4F3F5
surface
#E6E5E9
border
#C2C1C5
text
#000005
muted
#777779

Preview Lab

Preview with #020126

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

Preview Lab → · Contrast checker → · Palette generator →

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