#050837#050837

#050837 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.7% C 0.089 H 269.7°. Best body text is #FFFFFF at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#050837
RGBrgb(5, 8, 55)
HSLhsl(236, 83%, 12%)
HSVhsv(236, 91%, 22%)
CMYKcmyk(90.9%, 85.5%, 0%, 78.4%)
CIE-LABlab(4.35, 15.61, -29.47)
CIE-LCHlch(4.35, 33.35, 297.90°)
OKLaboklab(17.68% -0.0005 -0.0892)
OKLCHoklch(17.68% 0.089 269.7)
XYZxyz(0.8388, 0.4817, 3.6625)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050837 #373405
analogous
#052137 #050837 #1B0537
triadic
#050837 #370508 #083705
tetradic
#050837 #370521 #373405 #05371B
square
#050837 #370521 #373405 #05371B
split-complementary
#050837 #371B05 #213705
monochromatic
#03041C #03041C #050837 #0A106F #0F18A7

Accessibility & contrast

On white

19.15
#050837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050837
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050837#FFFFFF#000000##FFFFFF
##0508371.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001238
Deuteranopia (green-blind)
#000D36
Tritanopia (blue-blind)
#00161E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050837;
/* rgb */ color: rgb(5, 8, 55);
/* oklch */ color: oklch(17.7% 0.089 269.7);
Tailwind
colors: {
  custom: {
    50: '#4e496e',
    500: '#050837',
    950: '#000000',
  },
}
SCSS
$custom: #050837;
$custom-light: #4e496e;
$custom-dark: #000000;
JSON
{
  "hex": "#050837",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 236.4,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17675,
    "c": 0.08917,
    "h": 269.7
  },
  "luminance": 0.00482
}

Semantic roles & 50–950 ramp

primary
#050837
secondary
#787320
accent
#ED2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050837

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

Preview Lab → · Contrast checker → · Palette generator →

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