#051F46#051F46

#051F46 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.6% C 0.080 H 258.5°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#051F46
RGBrgb(5, 31, 70)
HSLhsl(216, 87%, 15%)
HSVhsv(216, 93%, 27%)
CMYKcmyk(92.9%, 55.7%, 0%, 72.5%)
CIE-LABlab(12.31, 7.62, -27.23)
CIE-LCHlch(12.31, 28.28, 285.64°)
OKLaboklab(24.65% -0.0159 -0.0784)
OKLCHoklch(24.65% 0.08 258.5)
XYZxyz(1.6577, 1.4542, 5.9865)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051F46 #462C05
analogous
#054046 #051F46 #0B0546
triadic
#051F46 #46051F #1F4605
tetradic
#051F46 #460540 #462C05 #05460B
square
#051F46 #460540 #462C05 #05460B
split-complementary
#051F46 #460B05 #404605
monochromatic
#020D1D #020D1D #051F46 #09387F #0D52B8

Accessibility & contrast

On white

16.27
#051F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#051F46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051F46
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051F46#FFFFFF#000000##FFFFFF
##051F461.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072347
Deuteranopia (green-blind)
#001D45
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #051f46;
/* rgb */ color: rgb(5, 31, 70);
/* oklch */ color: oklch(24.6% 0.080 258.5);
Tailwind
colors: {
  custom: {
    50: '#525a7a',
    500: '#051f46',
    950: '#000000',
  },
}
SCSS
$custom: #051f46;
$custom-light: #525a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#051f46",
  "rgb": {
    "r": 5,
    "g": 31,
    "b": 70
  },
  "hsl": {
    "h": 216,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24648,
    "c": 0.08003,
    "h": 258.5
  },
  "luminance": 0.01454
}

Semantic roles & 50–950 ramp

primary
#051F46
secondary
#865E21
accent
#A92BFD
background
#F5F5F7
surface
#E8E9ED
border
#C4C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #051F46

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

Preview Lab → · Contrast checker → · Palette generator →

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