#051340#051340

#051340 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.1% C 0.088 H 265.1°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#051340
RGBrgb(5, 19, 64)
HSLhsl(226, 86%, 14%)
HSVhsv(226, 92%, 25%)
CMYKcmyk(92.2%, 70.3%, 0%, 74.9%)
CIE-LABlab(7.84, 14.32, -30.29)
CIE-LCHlch(7.84, 33.51, 295.31°)
OKLaboklab(21.09% -0.0074 -0.0877)
OKLCHoklch(21.09% 0.088 265.1)
XYZxyz(1.2205, 0.8680, 4.9527)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051340 #403205
analogous
#053040 #051340 #140540
triadic
#051340 #400513 #134005
tetradic
#051340 #400530 #403205 #054014
square
#051340 #400530 #403205 #054014
split-complementary
#051340 #401405 #304005
monochromatic
#02081C #02081C #051340 #092479 #0E35B2

Accessibility & contrast

On white

17.89
#051340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#051340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051340
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051340#FFFFFF#000000##FFFFFF
##0513401.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #051340;
/* rgb */ color: rgb(5, 19, 64);
/* oklch */ color: oklch(21.1% 0.088 265.1);
Tailwind
colors: {
  custom: {
    50: '#515075',
    500: '#051340',
    950: '#000000',
  },
}
SCSS
$custom: #051340;
$custom-light: #515075;
$custom-dark: #000000;
JSON
{
  "hex": "#051340",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 225.763,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21091,
    "c": 0.08799,
    "h": 265.1
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#051340
secondary
#816A20
accent
#CA2CFC
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #051340

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

Preview Lab → · Contrast checker → · Palette generator →

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