#051338#051338

#051338 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.075 H 264.1°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#051338
RGBrgb(5, 19, 56)
HSLhsl(224, 84%, 12%)
HSVhsv(224, 91%, 22%)
CMYKcmyk(91.1%, 66.1%, 0%, 78%)
CIE-LABlab(7.08, 10.42, -25.79)
CIE-LCHlch(7.08, 27.82, 292.00°)
OKLaboklab(20.24% -0.0078 -0.0747)
OKLCHoklch(20.24% 0.075 264.1)
XYZxyz(1.0090, 0.7834, 3.8386)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051338 #382A05
analogous
#052D38 #051338 #100538
triadic
#051338 #380513 #133805
tetradic
#051338 #38052D #382A05 #053810
square
#051338 #38052D #382A05 #053810
split-complementary
#051338 #381005 #2D3805
monochromatic
#030A1C #030A1C #051338 #0A2670 #0F39A8

Accessibility & contrast

On white

18.15
#051338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#051338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051338
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051338#FFFFFF#000000##FFFFFF
##0513381.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001839
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001C23
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #051338;
/* rgb */ color: rgb(5, 19, 56);
/* oklch */ color: oklch(20.2% 0.075 264.1);
Tailwind
colors: {
  custom: {
    50: '#4e506f',
    500: '#051338',
    950: '#000000',
  },
}
SCSS
$custom: #051338;
$custom-light: #4e506f;
$custom-dark: #000000;
JSON
{
  "hex": "#051338",
  "rgb": {
    "r": 5,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 223.529,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20243,
    "c": 0.07507,
    "h": 264.1
  },
  "luminance": 0.00784
}

Semantic roles & 50–950 ramp

primary
#051338
secondary
#796120
accent
#C22EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051338

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

Preview Lab → · Contrast checker → · Palette generator →

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