#050126#050126

#050126 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.4% C 0.077 H 277.4°. Best body text is #FFFFFF at 20.22:1 contrast (WCAG AA passes).

Color values

HEX#050126
RGBrgb(5, 1, 38)
HSLhsl(246, 95%, 8%)
HSVhsv(246, 97%, 15%)
CMYKcmyk(86.8%, 97.4%, 0%, 85.1%)
CIE-LABlab(1.75, 9.79, -20.80)
CIE-LCHlch(1.75, 22.98, 295.20°)
OKLaboklab(13.39% 0.01 -0.0764)
OKLCHoklch(13.39% 0.077 277.4)
XYZxyz(0.4232, 0.1939, 1.8485)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050126 #222601
analogous
#011026 #050126 #170126
triadic
#050126 #260501 #012605
tetradic
#050126 #260110 #222601 #012617
square
#050126 #260110 #222601 #012617
split-complementary
#050126 #261701 #102601
monochromatic
#04011E #04011E #050126 #0D0362 #15049D

Accessibility & contrast

On white

20.22
#050126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050126
20.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050126#FFFFFF#000000##FFFFFF
##0501261.0020.221.0420.22
#FFFFFF20.221.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #050126;
/* rgb */ color: rgb(5, 1, 38);
/* oklch */ color: oklch(13.4% 0.077 277.4);
Tailwind
colors: {
  custom: {
    50: '#494760',
    500: '#050126',
    950: '#000000',
  },
}
SCSS
$custom: #050126;
$custom-light: #494760;
$custom-dark: #000000;
JSON
{
  "hex": "#050126",
  "rgb": {
    "r": 5,
    "g": 1,
    "b": 38
  },
  "hsl": {
    "h": 246.486,
    "s": 94.872,
    "l": 7.647
  },
  "oklch": {
    "l": 0.13385,
    "c": 0.07706,
    "h": 277.4
  },
  "luminance": 0.00194
}

Semantic roles & 50–950 ramp

primary
#050126
secondary
#636D16
accent
#FF29E8
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#010005
muted
#777779

Preview Lab

Preview with #050126

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

Preview Lab → · Contrast checker → · Palette generator →

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