#051937#051937

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

Color values

HEX#051937
RGBrgb(5, 25, 55)
HSLhsl(216, 83%, 12%)
HSVhsv(216, 91%, 22%)
CMYKcmyk(90.9%, 54.5%, 0%, 78.4%)
CIE-LABlab(9.02, 5.25, -21.93)
CIE-LCHlch(9.02, 22.55, 283.46°)
OKLaboklab(21.73% -0.0134 -0.063)
OKLCHoklch(21.73% 0.064 258)
XYZxyz(1.0996, 1.0032, 3.7494)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051937 #372305
analogous
#053237 #051937 #0A0537
triadic
#051937 #370519 #193705
tetradic
#051937 #370532 #372305 #05370A
square
#051937 #370532 #372305 #05370A
split-complementary
#051937 #370A05 #323705
monochromatic
#030D1C #030D1C #051937 #0A336F #0F4CA7

Accessibility & contrast

On white

17.49
#051937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#051937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051937
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051937#FFFFFF#000000##FFFFFF
##0519371.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091C38
Deuteranopia (green-blind)
#011736
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #051937;
/* rgb */ color: rgb(5, 25, 55);
/* oklch */ color: oklch(21.7% 0.064 258.0);
Tailwind
colors: {
  custom: {
    50: '#4e556e',
    500: '#051937',
    950: '#000000',
  },
}
SCSS
$custom: #051937;
$custom-light: #4e556e;
$custom-dark: #000000;
JSON
{
  "hex": "#051937",
  "rgb": {
    "r": 5,
    "g": 25,
    "b": 55
  },
  "hsl": {
    "h": 216,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21725,
    "c": 0.06438,
    "h": 258
  },
  "luminance": 0.01003
}

Semantic roles & 50–950 ramp

primary
#051937
secondary
#785520
accent
#A82EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051937

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

Preview Lab → · Contrast checker → · Palette generator →

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