#051038#051038

#051038 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.5% C 0.080 H 266.1°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#051038
RGBrgb(5, 16, 56)
HSLhsl(227, 84%, 12%)
HSVhsv(227, 91%, 22%)
CMYKcmyk(91.1%, 71.4%, 0%, 78%)
CIE-LABlab(6.22, 12.37, -27.18)
CIE-LCHlch(6.22, 29.87, 294.47°)
OKLaboklab(19.52% -0.0054 -0.0794)
OKLCHoklch(19.52% 0.08 266.1)
XYZxyz(0.9614, 0.6883, 3.8228)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051038 #382D05
analogous
#052A38 #051038 #140538
triadic
#051038 #380510 #103805
tetradic
#051038 #38052A #382D05 #053814
square
#051038 #38052A #382D05 #053814
split-complementary
#051038 #381405 #2A3805
monochromatic
#03081C #03081C #051038 #0A2070 #0F30A8

Accessibility & contrast

On white

18.46
#051038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#051038 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051038
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051038#FFFFFF#000000##FFFFFF
##0510381.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#001A22
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #051038;
/* rgb */ color: rgb(5, 16, 56);
/* oklch */ color: oklch(19.5% 0.080 266.1);
Tailwind
colors: {
  custom: {
    50: '#4e4e6f',
    500: '#051038',
    950: '#000000',
  },
}
SCSS
$custom: #051038;
$custom-light: #4e4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#051038",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 56
  },
  "hsl": {
    "h": 227.059,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19515,
    "c": 0.07957,
    "h": 266.1
  },
  "luminance": 0.00688
}

Semantic roles & 50–950 ramp

primary
#051038
secondary
#796620
accent
#CE2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #051038

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

Preview Lab → · Contrast checker → · Palette generator →

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