#051028#051028

#051028 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 17.9% C 0.052 H 262.4°. Best body text is #FFFFFF at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#051028
RGBrgb(5, 16, 40)
HSLhsl(221, 78%, 9%)
HSVhsv(221, 88%, 16%)
CMYKcmyk(87.5%, 60%, 0%, 84.3%)
CIE-LABlab(5.02, 4.19, -17.23)
CIE-LCHlch(5.02, 17.73, 283.66°)
OKLaboklab(17.9% -0.0069 -0.0517)
OKLCHoklch(17.9% 0.052 262.4)
XYZxyz(0.6307, 0.5560, 2.0811)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051028 #281D05
analogous
#052228 #051028 #0C0528
triadic
#051028 #280510 #102805
tetradic
#051028 #280522 #281D05 #05280C
square
#051028 #280522 #281D05 #05280C
split-complementary
#051028 #280C05 #222805
monochromatic
#030B1B #030B1B #051028 #0C265E #133C95

Accessibility & contrast

On white

18.90
#051028 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051028
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051028#FFFFFF#000000##FFFFFF
##0510281.0018.901.1118.90
#FFFFFF18.901.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041329
Deuteranopia (green-blind)
#010F28
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #051028;
/* rgb */ color: rgb(5, 16, 40);
/* oklch */ color: oklch(17.9% 0.052 262.4);
Tailwind
colors: {
  custom: {
    50: '#494e62',
    500: '#051028',
    950: '#000000',
  },
}
SCSS
$custom: #051028;
$custom-light: #494e62;
$custom-dark: #000000;
JSON
{
  "hex": "#051028",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 40
  },
  "hsl": {
    "h": 221.143,
    "s": 77.778,
    "l": 8.824
  },
  "oklch": {
    "l": 0.17896,
    "c": 0.05221,
    "h": 262.4
  },
  "luminance": 0.00556
}

Semantic roles & 50–950 ramp

primary
#051028
secondary
#6A521F
accent
#B834F4
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #051028

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

Preview Lab → · Contrast checker → · Palette generator →

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