#051B3D#051B3D

#051B3D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 22.8% C 0.071 H 258.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#051B3D
RGBrgb(5, 27, 61)
HSLhsl(216, 85%, 13%)
HSVhsv(216, 92%, 24%)
CMYKcmyk(91.8%, 55.7%, 0%, 76.1%)
CIE-LABlab(10.21, 6.51, -24.31)
CIE-LCHlch(10.21, 25.17, 285.00°)
OKLaboklab(22.79% -0.014 -0.0699)
OKLCHoklch(22.79% 0.071 258.6)
XYZxyz(1.2965, 1.1529, 4.5682)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051B3D #3D2705
analogous
#05373D #051B3D #0B053D
triadic
#051B3D #3D051B #1B3D05
tetradic
#051B3D #3D0537 #3D2705 #053D0B
square
#051B3D #3D0537 #3D2705 #053D0B
split-complementary
#051B3D #3D0B05 #373D05
monochromatic
#020D1C #020D1C #051B3D #0A3476 #0E4DAE

Accessibility & contrast

On white

17.06
#051B3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#051B3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051B3D
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051B3D#FFFFFF#000000##FFFFFF
##051B3D1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3E
Deuteranopia (green-blind)
#00193C
Tritanopia (blue-blind)
#002329
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #051b3d;
/* rgb */ color: rgb(5, 27, 61);
/* oklch */ color: oklch(22.8% 0.071 258.6);
Tailwind
colors: {
  custom: {
    50: '#505673',
    500: '#051b3d',
    950: '#000000',
  },
}
SCSS
$custom: #051b3d;
$custom-light: #505673;
$custom-dark: #000000;
JSON
{
  "hex": "#051b3d",
  "rgb": {
    "r": 5,
    "g": 27,
    "b": 61
  },
  "hsl": {
    "h": 216.429,
    "s": 84.848,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22793,
    "c": 0.07134,
    "h": 258.6
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#051B3D
secondary
#7E5920
accent
#AA2DFB
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #051B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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