#051537#051537

#051537 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.070 H 262.2°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#051537
RGBrgb(5, 21, 55)
HSLhsl(221, 83%, 12%)
HSVhsv(221, 91%, 22%)
CMYKcmyk(90.9%, 61.8%, 0%, 78.4%)
CIE-LABlab(7.63, 8.45, -24.18)
CIE-LCHlch(7.63, 25.61, 289.27°)
OKLaboklab(20.65% -0.0096 -0.0697)
OKLCHoklch(20.65% 0.07 262.2)
XYZxyz(1.0201, 0.8443, 3.7229)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051537 #372705
analogous
#052E37 #051537 #0E0537
triadic
#051537 #370515 #153705
tetradic
#051537 #37052E #372705 #05370E
square
#051537 #37052E #372705 #05370E
split-complementary
#051537 #370E05 #2E3705
monochromatic
#030B1C #030B1C #051537 #0A2A6F #0F40A7

Accessibility & contrast

On white

17.97
#051537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#051537 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051537
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051537#FFFFFF#000000##FFFFFF
##0515371.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011938
Deuteranopia (green-blind)
#001536
Tritanopia (blue-blind)
#001D23
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #051537;
/* rgb */ color: rgb(5, 21, 55);
/* oklch */ color: oklch(20.7% 0.070 262.2);
Tailwind
colors: {
  custom: {
    50: '#4e516e',
    500: '#051537',
    950: '#000000',
  },
}
SCSS
$custom: #051537;
$custom-light: #4e516e;
$custom-dark: #000000;
JSON
{
  "hex": "#051537",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 55
  },
  "hsl": {
    "h": 220.8,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20654,
    "c": 0.07038,
    "h": 262.2
  },
  "luminance": 0.00844
}

Semantic roles & 50–950 ramp

primary
#051537
secondary
#785C20
accent
#B92EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051537

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

Preview Lab → · Contrast checker → · Palette generator →

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