#051D3F#051D3F

#051D3F is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.5% C 0.072 H 257.5°. Best body text is #FFFFFF at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#051D3F
RGBrgb(5, 29, 63)
HSLhsl(215, 85%, 13%)
HSVhsv(215, 92%, 25%)
CMYKcmyk(92.1%, 54%, 0%, 75.3%)
CIE-LABlab(11.06, 5.88, -24.35)
CIE-LCHlch(11.06, 25.05, 283.58°)
OKLaboklab(23.5% -0.0155 -0.07)
OKLCHoklch(23.5% 0.072 257.5)
XYZxyz(1.3988, 1.2697, 4.8730)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051D3F #3F2705
analogous
#053A3F #051D3F #0A053F
triadic
#051D3F #3F051D #1D3F05
tetradic
#051D3F #3F053A #3F2705 #053F0A
square
#051D3F #3F053A #3F2705 #053F0A
split-complementary
#051D3F #3F0A05 #3A3F05
monochromatic
#020D1C #020D1C #051D3F #093778 #0E51B0

Accessibility & contrast

On white

16.75
#051D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#051D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051D3F
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051D3F#FFFFFF#000000##FFFFFF
##051D3F1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2040
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#00252A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #051d3f;
/* rgb */ color: rgb(5, 29, 63);
/* oklch */ color: oklch(23.5% 0.072 257.5);
Tailwind
colors: {
  custom: {
    50: '#505874',
    500: '#051d3f',
    950: '#000000',
  },
}
SCSS
$custom: #051d3f;
$custom-light: #505874;
$custom-dark: #000000;
JSON
{
  "hex": "#051d3f",
  "rgb": {
    "r": 5,
    "g": 29,
    "b": 63
  },
  "hsl": {
    "h": 215.172,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23504,
    "c": 0.07169,
    "h": 257.5
  },
  "luminance": 0.0127
}

Semantic roles & 50–950 ramp

primary
#051D3F
secondary
#805820
accent
#A62CFC
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051D3F

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

Preview Lab → · Contrast checker → · Palette generator →

#051D3F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva