#051B46#051B46

#051B46 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.6% C 0.086 H 261.5°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#051B46
RGBrgb(5, 27, 70)
HSLhsl(220, 87%, 15%)
HSVhsv(220, 93%, 27%)
CMYKcmyk(92.9%, 61.4%, 0%, 72.5%)
CIE-LABlab(10.98, 10.77, -29.40)
CIE-LCHlch(10.98, 31.31, 290.12°)
OKLaboklab(23.63% -0.0127 -0.0849)
OKLCHoklch(23.63% 0.086 261.5)
XYZxyz(1.5596, 1.2581, 5.9538)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051B46 #463005
analogous
#053C46 #051B46 #0F0546
triadic
#051B46 #46051B #1B4605
tetradic
#051B46 #46053C #463005 #05460F
square
#051B46 #46053C #463005 #05460F
split-complementary
#051B46 #460F05 #3C4605
monochromatic
#020B1D #020B1D #051B46 #09317F #0D47B8

Accessibility & contrast

On white

16.78
#051B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051B46
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051B46#FFFFFF#000000##FFFFFF
##051B461.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002147
Deuteranopia (green-blind)
#001B45
Tritanopia (blue-blind)
#00262D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #051b46;
/* rgb */ color: rgb(5, 27, 70);
/* oklch */ color: oklch(23.6% 0.086 261.5);
Tailwind
colors: {
  custom: {
    50: '#53567a',
    500: '#051b46',
    950: '#000000',
  },
}
SCSS
$custom: #051b46;
$custom-light: #53567a;
$custom-dark: #000000;
JSON
{
  "hex": "#051b46",
  "rgb": {
    "r": 5,
    "g": 27,
    "b": 70
  },
  "hsl": {
    "h": 219.692,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2363,
    "c": 0.08584,
    "h": 261.5
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#051B46
secondary
#866421
accent
#B62BFD
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #051B46

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

Preview Lab → · Contrast checker → · Palette generator →

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