#051535#051535

#051535 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.067 H 261.5°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#051535
RGBrgb(5, 21, 53)
HSLhsl(220, 83%, 11%)
HSVhsv(220, 91%, 21%)
CMYKcmyk(90.6%, 60.4%, 0%, 79.2%)
CIE-LABlab(7.46, 7.46, -23.00)
CIE-LCHlch(7.46, 24.18, 287.98°)
OKLaboklab(20.46% -0.0099 -0.0663)
OKLCHoklch(20.46% 0.067 261.5)
XYZxyz(0.9731, 0.8255, 3.4755)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051535 #352505
analogous
#052D35 #051535 #0D0535
triadic
#051535 #350515 #153505
tetradic
#051535 #35052D #352505 #05350D
square
#051535 #35052D #352505 #05350D
split-complementary
#051535 #350D05 #2D3505
monochromatic
#030B1C #030B1C #051535 #0A2B6D #1041A5

Accessibility & contrast

On white

18.02
#051535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#051535 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051535
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051535#FFFFFF#000000##FFFFFF
##0515351.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031936
Deuteranopia (green-blind)
#001434
Tritanopia (blue-blind)
#001D22
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #051535;
/* rgb */ color: rgb(5, 21, 53);
/* oklch */ color: oklch(20.5% 0.067 261.5);
Tailwind
colors: {
  custom: {
    50: '#4d516c',
    500: '#051535',
    950: '#000000',
  },
}
SCSS
$custom: #051535;
$custom-light: #4d516c;
$custom-dark: #000000;
JSON
{
  "hex": "#051535",
  "rgb": {
    "r": 5,
    "g": 21,
    "b": 53
  },
  "hsl": {
    "h": 220,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20464,
    "c": 0.06701,
    "h": 261.5
  },
  "luminance": 0.00826
}

Semantic roles & 50–950 ramp

primary
#051535
secondary
#765920
accent
#B62FF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020207
muted
#78787A

Preview Lab

Preview with #051535

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

Preview Lab → · Contrast checker → · Palette generator →

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