#051127#051127

#051127 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.1% C 0.049 H 260.2°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#051127
RGBrgb(5, 17, 39)
HSLhsl(219, 77%, 9%)
HSVhsv(219, 87%, 15%)
CMYKcmyk(87.2%, 56.4%, 0%, 84.7%)
CIE-LABlab(5.24, 3.20, -16.14)
CIE-LCHlch(5.24, 16.45, 281.23°)
OKLaboklab(18.09% -0.0083 -0.0481)
OKLCHoklch(18.09% 0.049 260.2)
XYZxyz(0.6291, 0.5796, 1.9978)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#051127 #271B05
analogous
#052227 #051127 #0A0527
triadic
#051127 #270511 #112705
tetradic
#051127 #270522 #271B05 #05270A
square
#051127 #270522 #271B05 #05270A
split-complementary
#051127 #270A05 #222705
monochromatic
#030C1B #030C1B #051127 #0C295D #134093

Accessibility & contrast

On white

18.82
#051127 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#051127 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #051127
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##051127#FFFFFF#000000##FFFFFF
##0511271.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071328
Deuteranopia (green-blind)
#021027
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #051127;
/* rgb */ color: rgb(5, 17, 39);
/* oklch */ color: oklch(18.1% 0.049 260.2);
Tailwind
colors: {
  custom: {
    50: '#494f61',
    500: '#051127',
    950: '#000000',
  },
}
SCSS
$custom: #051127;
$custom-light: #494f61;
$custom-dark: #000000;
JSON
{
  "hex": "#051127",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 39
  },
  "hsl": {
    "h": 218.824,
    "s": 77.273,
    "l": 8.627
  },
  "oklch": {
    "l": 0.1809,
    "c": 0.04885,
    "h": 260.2
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#051127
secondary
#694F1F
accent
#B034F4
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010105
muted
#777779

Preview Lab

Preview with #051127

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

Preview Lab → · Contrast checker → · Palette generator →

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