#050828#050828

#050828 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.8% C 0.065 H 271.3°. Best body text is #FFFFFF at 19.59:1 contrast (WCAG AA passes).

Color values

HEX#050828
RGBrgb(5, 8, 40)
HSLhsl(235, 78%, 9%)
HSVhsv(235, 88%, 16%)
CMYKcmyk(87.5%, 80%, 0%, 84.3%)
CIE-LABlab(3.24, 7.82, -20.01)
CIE-LCHlch(3.24, 21.49, 291.35°)
OKLaboklab(15.8% 0.0015 -0.0652)
OKLCHoklch(15.8% 0.065 271.3)
XYZxyz(0.5323, 0.3591, 2.0483)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050828 #282505
analogous
#051A28 #050828 #140528
triadic
#050828 #280508 #082805
tetradic
#050828 #28051A #282505 #052814
square
#050828 #28051A #282505 #052814
split-complementary
#050828 #281405 #1A2805
monochromatic
#03051B #03051B #050828 #0C135E #131E95

Accessibility & contrast

On white

19.59
#050828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#050828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050828
19.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050828#FFFFFF#000000##FFFFFF
##0508281.0019.591.0719.59
#FFFFFF19.591.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D29
Deuteranopia (green-blind)
#000A27
Tritanopia (blue-blind)
#001016
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #050828;
/* rgb */ color: rgb(5, 8, 40);
/* oklch */ color: oklch(15.8% 0.065 271.3);
Tailwind
colors: {
  custom: {
    50: '#494a62',
    500: '#050828',
    950: '#000000',
  },
}
SCSS
$custom: #050828;
$custom-light: #494a62;
$custom-dark: #000000;
JSON
{
  "hex": "#050828",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 40
  },
  "hsl": {
    "h": 234.857,
    "s": 77.778,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15802,
    "c": 0.06521,
    "h": 271.3
  },
  "luminance": 0.00359
}

Semantic roles & 50–950 ramp

primary
#050828
secondary
#6A631F
accent
#E434F4
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #050828

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

Preview Lab → · Contrast checker → · Palette generator →

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