#050842#050842

#050842 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.2% C 0.105 H 268.6°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#050842
RGBrgb(5, 8, 66)
HSLhsl(237, 86%, 14%)
HSVhsv(237, 92%, 26%)
CMYKcmyk(92.4%, 87.9%, 0%, 74.1%)
CIE-LABlab(5.41, 21.91, -35.69)
CIE-LCHlch(5.41, 41.88, 301.55°)
OKLaboklab(19.16% -0.0025 -0.1051)
OKLCHoklch(19.16% 0.105 268.6)
XYZxyz(1.1325, 0.5991, 5.2092)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050842 #423F05
analogous
#052742 #050842 #210542
triadic
#050842 #420508 #084205
tetradic
#050842 #420527 #423F05 #054221
square
#050842 #420527 #423F05 #054221
split-complementary
#050842 #422105 #274205
monochromatic
#02031C #02031C #050842 #090F7B #0E16B4

Accessibility & contrast

On white

18.75
#050842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#050842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050842
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050842#FFFFFF#000000##FFFFFF
##0508421.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#000F41
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050842;
/* rgb */ color: rgb(5, 8, 66);
/* oklch */ color: oklch(19.2% 0.105 268.6);
Tailwind
colors: {
  custom: {
    50: '#534977',
    500: '#050842',
    950: '#000000',
  },
}
SCSS
$custom: #050842;
$custom-light: #534977;
$custom-dark: #000000;
JSON
{
  "hex": "#050842",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 237.049,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19156,
    "c": 0.10515,
    "h": 268.6
  },
  "luminance": 0.00599
}

Semantic roles & 50–950 ramp

primary
#050842
secondary
#827E20
accent
#F22CFC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #050842

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

Preview Lab → · Contrast checker → · Palette generator →

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