#051336#051336

#051336 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.0% C 0.072 H 263.7°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#051336
RGBrgb(5, 19, 54)
HSLhsl(223, 83%, 12%)
HSVhsv(223, 91%, 21%)
CMYKcmyk(90.7%, 64.8%, 0%, 78.8%)
CIE-LABlab(6.90, 9.40, -24.62)
CIE-LCHlch(6.90, 26.36, 290.90°)
OKLaboklab(20.04% -0.0079 -0.0713)
OKLCHoklch(20.04% 0.072 263.7)
XYZxyz(0.9611, 0.7642, 3.5862)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051336 #362805
analogous
#052C36 #051336 #100536
triadic
#051336 #360513 #133605
tetradic
#051336 #36052C #362805 #053610
square
#051336 #36052C #362805 #053610
split-complementary
#051336 #361005 #2C3605
monochromatic
#030A1C #030A1C #051336 #0A276E #0F3AA6

Accessibility & contrast

On white

18.22
#051336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#051336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051336
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051336#FFFFFF#000000##FFFFFF
##0513361.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#001335
Tritanopia (blue-blind)
#001C22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #051336;
/* rgb */ color: rgb(5, 19, 54);
/* oklch */ color: oklch(20.0% 0.072 263.7);
Tailwind
colors: {
  custom: {
    50: '#4e506d',
    500: '#051336',
    950: '#000000',
  },
}
SCSS
$custom: #051336;
$custom-light: #4e506d;
$custom-dark: #000000;
JSON
{
  "hex": "#051336",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 222.857,
    "s": 83.051,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20041,
    "c": 0.07175,
    "h": 263.7
  },
  "luminance": 0.00764
}

Semantic roles & 50–950 ramp

primary
#051336
secondary
#775E20
accent
#BF2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #051336

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

Preview Lab → · Contrast checker → · Palette generator →

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