#051738#051738

#051738 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.069 H 260.6°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#051738
RGBrgb(5, 23, 56)
HSLhsl(219, 84%, 12%)
HSVhsv(219, 91%, 22%)
CMYKcmyk(91.1%, 58.9%, 0%, 78%)
CIE-LABlab(8.40, 7.33, -23.65)
CIE-LCHlch(8.40, 24.76, 287.22°)
OKLaboklab(21.28% -0.0113 -0.0681)
OKLCHoklch(21.28% 0.069 260.6)
XYZxyz(1.0825, 0.9305, 3.8632)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051738 #382605
analogous
#053138 #051738 #0D0538
triadic
#051738 #380517 #173805
tetradic
#051738 #380531 #382605 #05380D
square
#051738 #380531 #382605 #05380D
split-complementary
#051738 #380D05 #313805
monochromatic
#030C1C #030C1C #051738 #0A2E70 #0F45A8

Accessibility & contrast

On white

17.70
#051738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #051738
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051738#FFFFFF#000000##FFFFFF
##0517381.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B39
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #051738;
/* rgb */ color: rgb(5, 23, 56);
/* oklch */ color: oklch(21.3% 0.069 260.6);
Tailwind
colors: {
  custom: {
    50: '#4e536f',
    500: '#051738',
    950: '#000000',
  },
}
SCSS
$custom: #051738;
$custom-light: #4e536f;
$custom-dark: #000000;
JSON
{
  "hex": "#051738",
  "rgb": {
    "r": 5,
    "g": 23,
    "b": 56
  },
  "hsl": {
    "h": 218.824,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21275,
    "c": 0.06901,
    "h": 260.6
  },
  "luminance": 0.00931
}

Semantic roles & 50–950 ramp

primary
#051738
secondary
#795A20
accent
#B22EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #051738

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

Preview Lab → · Contrast checker → · Palette generator →

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