#051A3D#051A3D

#051A3D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.073 H 259.6°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#051A3D
RGBrgb(5, 26, 61)
HSLhsl(218, 85%, 13%)
HSVhsv(218, 92%, 24%)
CMYKcmyk(91.8%, 57.4%, 0%, 76.1%)
CIE-LABlab(9.86, 7.31, -24.87)
CIE-LCHlch(9.86, 25.93, 286.38°)
OKLaboklab(22.53% -0.0131 -0.0716)
OKLCHoklch(22.53% 0.073 259.6)
XYZxyz(1.2740, 1.1078, 4.5607)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051A3D #3D2805
analogous
#05363D #051A3D #0C053D
triadic
#051A3D #3D051A #1A3D05
tetradic
#051A3D #3D0536 #3D2805 #053D0C
square
#051A3D #3D0536 #3D2805 #053D0C
split-complementary
#051A3D #3D0C05 #363D05
monochromatic
#020C1C #020C1C #051A3D #0A3276 #0E4AAE

Accessibility & contrast

On white

17.19
#051A3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#051A3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051A3D
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051A3D#FFFFFF#000000##FFFFFF
##051A3D1.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051E3E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#002228
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #051a3d;
/* rgb */ color: rgb(5, 26, 61);
/* oklch */ color: oklch(22.5% 0.073 259.6);
Tailwind
colors: {
  custom: {
    50: '#505573',
    500: '#051a3d',
    950: '#000000',
  },
}
SCSS
$custom: #051a3d;
$custom-light: #505573;
$custom-dark: #000000;
JSON
{
  "hex": "#051a3d",
  "rgb": {
    "r": 5,
    "g": 26,
    "b": 61
  },
  "hsl": {
    "h": 217.5,
    "s": 84.848,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22528,
    "c": 0.07281,
    "h": 259.6
  },
  "luminance": 0.01108
}

Semantic roles & 50–950 ramp

primary
#051A3D
secondary
#7E5B20
accent
#AE2DFB
background
#F4F4F7
surface
#E7E8ED
border
#C3C4C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051A3D

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

Preview Lab → · Contrast checker → · Palette generator →

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