#050838#050838

#050838 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.091 H 269.6°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#050838
RGBrgb(5, 8, 56)
HSLhsl(236, 84%, 12%)
HSVhsv(236, 91%, 22%)
CMYKcmyk(91.1%, 85.7%, 0%, 78%)
CIE-LABlab(4.44, 16.21, -30.06)
CIE-LCHlch(4.44, 34.16, 298.34°)
OKLaboklab(17.81% -0.0006 -0.0907)
OKLCHoklch(17.81% 0.091 269.6)
XYZxyz(0.8630, 0.4914, 3.7900)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050838 #383505
analogous
#052238 #050838 #1C0538
triadic
#050838 #380508 #083805
tetradic
#050838 #380522 #383505 #05381C
square
#050838 #380522 #383505 #05381C
split-complementary
#050838 #381C05 #223805
monochromatic
#03041C #03041C #050838 #0A1070 #0F18A8

Accessibility & contrast

On white

19.12
#050838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050838
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050838#FFFFFF#000000##FFFFFF
##0508381.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001239
Deuteranopia (green-blind)
#000D37
Tritanopia (blue-blind)
#00161F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050838;
/* rgb */ color: rgb(5, 8, 56);
/* oklch */ color: oklch(17.8% 0.091 269.6);
Tailwind
colors: {
  custom: {
    50: '#4e496f',
    500: '#050838',
    950: '#000000',
  },
}
SCSS
$custom: #050838;
$custom-light: #4e496f;
$custom-dark: #000000;
JSON
{
  "hex": "#050838",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 236.471,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17806,
    "c": 0.09067,
    "h": 269.6
  },
  "luminance": 0.00491
}

Semantic roles & 50–950 ramp

primary
#050838
secondary
#797420
accent
#EE2EFA
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050838

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

Preview Lab → · Contrast checker → · Palette generator →

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