#051126#051126

#051126 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.0% C 0.047 H 259.5°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#051126
RGBrgb(5, 17, 38)
HSLhsl(218, 77%, 8%)
HSVhsv(218, 87%, 15%)
CMYKcmyk(86.8%, 55.3%, 0%, 85.1%)
CIE-LABlab(5.18, 2.79, -15.47)
CIE-LCHlch(5.18, 15.72, 280.23°)
OKLaboklab(18% -0.0085 -0.0463)
OKLCHoklch(18% 0.047 259.5)
XYZxyz(0.6128, 0.5730, 1.9117)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051126 #261A05
analogous
#052126 #051126 #090526
triadic
#051126 #260511 #112605
tetradic
#051126 #260521 #261A05 #052609
square
#051126 #260521 #261A05 #052609
split-complementary
#051126 #260905 #212605
monochromatic
#040C1B #040C1B #051126 #0C295C #134192

Accessibility & contrast

On white

18.84
#051126 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#051126 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051126
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051126#FFFFFF#000000##FFFFFF
##0511261.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071327
Deuteranopia (green-blind)
#031026
Tritanopia (blue-blind)
#001619
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #051126;
/* rgb */ color: rgb(5, 17, 38);
/* oklch */ color: oklch(18.0% 0.047 259.5);
Tailwind
colors: {
  custom: {
    50: '#494f60',
    500: '#051126',
    950: '#000000',
  },
}
SCSS
$custom: #051126;
$custom-light: #494f60;
$custom-dark: #000000;
JSON
{
  "hex": "#051126",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 38
  },
  "hsl": {
    "h": 218.182,
    "s": 76.744,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18004,
    "c": 0.04706,
    "h": 259.5
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#051126
secondary
#684D1F
accent
#AE35F3
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #051126

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

Preview Lab → · Contrast checker → · Palette generator →

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