#051839#051839

#051839 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.6% C 0.069 H 260.0°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#051839
RGBrgb(5, 24, 57)
HSLhsl(218, 84%, 12%)
HSVhsv(218, 91%, 22%)
CMYKcmyk(91.2%, 57.9%, 0%, 77.6%)
CIE-LABlab(8.83, 7.00, -23.67)
CIE-LCHlch(8.83, 24.69, 286.48°)
OKLaboklab(21.63% -0.012 -0.0681)
OKLCHoklch(21.63% 0.069 260)
XYZxyz(1.1275, 0.9808, 4.0000)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051839 #392605
analogous
#053239 #051839 #0C0539
triadic
#051839 #390518 #183905
tetradic
#051839 #390532 #392605 #05390C
square
#051839 #390532 #392605 #05390C
split-complementary
#051839 #390C05 #323905
monochromatic
#020C1C #020C1C #051839 #0A3071 #0F47AA

Accessibility & contrast

On white

17.56
#051839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051839
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051839#FFFFFF#000000##FFFFFF
##0518391.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3A
Deuteranopia (green-blind)
#001738
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051839;
/* rgb */ color: rgb(5, 24, 57);
/* oklch */ color: oklch(21.6% 0.069 260.0);
Tailwind
colors: {
  custom: {
    50: '#4e5470',
    500: '#051839',
    950: '#000000',
  },
}
SCSS
$custom: #051839;
$custom-light: #4e5470;
$custom-dark: #000000;
JSON
{
  "hex": "#051839",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 57
  },
  "hsl": {
    "h": 218.077,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21633,
    "c": 0.06918,
    "h": 260
  },
  "luminance": 0.00981
}

Semantic roles & 50–950 ramp

primary
#051839
secondary
#7A5920
accent
#AF2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051839

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

Preview Lab → · Contrast checker → · Palette generator →

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