#051836#051836

#051836 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.4% C 0.064 H 258.7°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#051836
RGBrgb(5, 24, 54)
HSLhsl(217, 83%, 12%)
HSVhsv(217, 91%, 21%)
CMYKcmyk(90.7%, 55.6%, 0%, 78.8%)
CIE-LABlab(8.58, 5.57, -21.91)
CIE-LCHlch(8.58, 22.61, 284.26°)
OKLaboklab(21.36% -0.0126 -0.0629)
OKLCHoklch(21.36% 0.064 258.7)
XYZxyz(1.0548, 0.9517, 3.6174)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051836 #362305
analogous
#053136 #051836 #0B0536
triadic
#051836 #360518 #183605
tetradic
#051836 #360531 #362305 #05360B
square
#051836 #360531 #362305 #05360B
split-complementary
#051836 #360B05 #313605
monochromatic
#030C1C #030C1C #051836 #0A316E #0F4AA6

Accessibility & contrast

On white

17.64
#051836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051836
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051836#FFFFFF#000000##FFFFFF
##0518361.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081B37
Deuteranopia (green-blind)
#001735
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051836;
/* rgb */ color: rgb(5, 24, 54);
/* oklch */ color: oklch(21.4% 0.064 258.7);
Tailwind
colors: {
  custom: {
    50: '#4e546d',
    500: '#051836',
    950: '#000000',
  },
}
SCSS
$custom: #051836;
$custom-light: #4e546d;
$custom-dark: #000000;
JSON
{
  "hex": "#051836",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 54
  },
  "hsl": {
    "h": 216.735,
    "s": 83.051,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21364,
    "c": 0.06418,
    "h": 258.7
  },
  "luminance": 0.00952
}

Semantic roles & 50–950 ramp

primary
#051836
secondary
#775520
accent
#AB2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #051836

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

Preview Lab → · Contrast checker → · Palette generator →

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