#051031#051031

#051031 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.068 H 265.2°. Best body text is #FFFFFF at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#051031
RGBrgb(5, 16, 49)
HSLhsl(225, 81%, 11%)
HSVhsv(225, 90%, 19%)
CMYKcmyk(89.8%, 67.3%, 0%, 80.8%)
CIE-LABlab(5.64, 8.54, -22.98)
CIE-LCHlch(5.64, 24.52, 290.39°)
OKLaboklab(18.77% -0.0057 -0.0677)
OKLCHoklch(18.77% 0.068 265.2)
XYZxyz(0.8021, 0.6245, 2.9834)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051031 #312605
analogous
#052631 #051031 #100531
triadic
#051031 #310510 #103105
tetradic
#051031 #310526 #312605 #053110
square
#051031 #310526 #312605 #053110
split-complementary
#051031 #311005 #263105
monochromatic
#03091C #03091C #051031 #0B2269 #1034A0

Accessibility & contrast

On white

18.67
#051031 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#051031 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051031
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051031#FFFFFF#000000##FFFFFF
##0510311.0018.671.1318.67
#FFFFFF18.671.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #051031;
/* rgb */ color: rgb(5, 16, 49);
/* oklch */ color: oklch(18.8% 0.068 265.2);
Tailwind
colors: {
  custom: {
    50: '#4c4e69',
    500: '#051031',
    950: '#000000',
  },
}
SCSS
$custom: #051031;
$custom-light: #4c4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#051031",
  "rgb": {
    "r": 5,
    "g": 16,
    "b": 49
  },
  "hsl": {
    "h": 225,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.1877,
    "c": 0.06794,
    "h": 265.2
  },
  "luminance": 0.00625
}

Semantic roles & 50–950 ramp

primary
#051031
secondary
#725E1F
accent
#C630F8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #051031

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

Preview Lab → · Contrast checker → · Palette generator →

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