#051837#051837

#051837 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.066 H 259.2°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#051837
RGBrgb(5, 24, 55)
HSLhsl(217, 83%, 12%)
HSVhsv(217, 91%, 22%)
CMYKcmyk(90.9%, 56.4%, 0%, 78.4%)
CIE-LABlab(8.66, 6.05, -22.50)
CIE-LCHlch(8.66, 23.30, 285.05°)
OKLaboklab(21.45% -0.0124 -0.0647)
OKLCHoklch(21.45% 0.066 259.2)
XYZxyz(1.0786, 0.9612, 3.7424)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051837 #372405
analogous
#053137 #051837 #0B0537
triadic
#051837 #370518 #183705
tetradic
#051837 #370531 #372405 #05370B
square
#051837 #370531 #372405 #05370B
split-complementary
#051837 #370B05 #313705
monochromatic
#030C1C #030C1C #051837 #0A306F #0F49A7

Accessibility & contrast

On white

17.61
#051837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#051837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051837
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051837#FFFFFF#000000##FFFFFF
##0518371.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071B38
Deuteranopia (green-blind)
#001736
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051837;
/* rgb */ color: rgb(5, 24, 55);
/* oklch */ color: oklch(21.5% 0.066 259.2);
Tailwind
colors: {
  custom: {
    50: '#4e546e',
    500: '#051837',
    950: '#000000',
  },
}
SCSS
$custom: #051837;
$custom-light: #4e546e;
$custom-dark: #000000;
JSON
{
  "hex": "#051837",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 55
  },
  "hsl": {
    "h": 217.2,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21452,
    "c": 0.06585,
    "h": 259.2
  },
  "luminance": 0.00961
}

Semantic roles & 50–950 ramp

primary
#051837
secondary
#785720
accent
#AC2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051837

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

Preview Lab → · Contrast checker → · Palette generator →

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