#051939#051939

#051939 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.068 H 259.0°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#051939
RGBrgb(5, 25, 57)
HSLhsl(217, 84%, 12%)
HSVhsv(217, 91%, 22%)
CMYKcmyk(91.2%, 56.1%, 0%, 77.6%)
CIE-LABlab(9.18, 6.20, -23.11)
CIE-LCHlch(9.18, 23.93, 285.02°)
OKLaboklab(21.9% -0.013 -0.0664)
OKLCHoklch(21.9% 0.068 259)
XYZxyz(1.1485, 1.0228, 4.0070)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051939 #392505
analogous
#053339 #051939 #0B0539
triadic
#051939 #390519 #193905
tetradic
#051939 #390533 #392505 #05390B
square
#051939 #390533 #392505 #05390B
split-complementary
#051939 #390B05 #333905
monochromatic
#020C1C #020C1C #051939 #0A3271 #0F4AAA

Accessibility & contrast

On white

17.43
#051939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051939
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051939#FFFFFF#000000##FFFFFF
##0519391.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C3A
Deuteranopia (green-blind)
#001838
Tritanopia (blue-blind)
#002126
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #051939;
/* rgb */ color: rgb(5, 25, 57);
/* oklch */ color: oklch(21.9% 0.068 259.0);
Tailwind
colors: {
  custom: {
    50: '#4e556f',
    500: '#051939',
    950: '#000000',
  },
}
SCSS
$custom: #051939;
$custom-light: #4e556f;
$custom-dark: #000000;
JSON
{
  "hex": "#051939",
  "rgb": {
    "r": 5,
    "g": 25,
    "b": 57
  },
  "hsl": {
    "h": 216.923,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21901,
    "c": 0.0677,
    "h": 259
  },
  "luminance": 0.01023
}

Semantic roles & 50–950 ramp

primary
#051939
secondary
#7A5720
accent
#AB2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051939

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

Preview Lab → · Contrast checker → · Palette generator →

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