#051838#051838

#051838 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.5% C 0.068 H 259.6°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#051838
RGBrgb(5, 24, 56)
HSLhsl(218, 84%, 12%)
HSVhsv(218, 91%, 22%)
CMYKcmyk(91.1%, 57.1%, 0%, 78%)
CIE-LABlab(8.75, 6.53, -23.09)
CIE-LCHlch(8.75, 24.00, 285.78°)
OKLaboklab(21.54% -0.0122 -0.0664)
OKLCHoklch(21.54% 0.068 259.6)
XYZxyz(1.1028, 0.9709, 3.8699)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051838 #382505
analogous
#053238 #051838 #0C0538
triadic
#051838 #380518 #183805
tetradic
#051838 #380532 #382505 #05380C
square
#051838 #380532 #382505 #05380C
split-complementary
#051838 #380C05 #323805
monochromatic
#030C1C #030C1C #051838 #0A3070 #0F48A8

Accessibility & contrast

On white

17.58
#051838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#051838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051838
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051838#FFFFFF#000000##FFFFFF
##0518381.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061B39
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #051838;
/* rgb */ color: rgb(5, 24, 56);
/* oklch */ color: oklch(21.5% 0.068 259.6);
Tailwind
colors: {
  custom: {
    50: '#4e546f',
    500: '#051838',
    950: '#000000',
  },
}
SCSS
$custom: #051838;
$custom-light: #4e546f;
$custom-dark: #000000;
JSON
{
  "hex": "#051838",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 56
  },
  "hsl": {
    "h": 217.647,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21542,
    "c": 0.06752,
    "h": 259.6
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#051838
secondary
#795820
accent
#AE2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051838

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

Preview Lab → · Contrast checker → · Palette generator →

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