#05112B#05112B

#05112B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.4% C 0.056 H 262.3°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#05112B
RGBrgb(5, 17, 43)
HSLhsl(221, 79%, 9%)
HSVhsv(221, 88%, 17%)
CMYKcmyk(88.4%, 60.5%, 0%, 83.1%)
CIE-LABlab(5.49, 4.98, -18.76)
CIE-LCHlch(5.49, 19.41, 284.86°)
OKLaboklab(18.45% -0.0075 -0.0555)
OKLCHoklch(18.45% 0.056 262.3)
XYZxyz(0.6989, 0.6075, 2.3655)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05112B #2B1F05
analogous
#05242B #05112B #0C052B
triadic
#05112B #2B0511 #112B05
tetradic
#05112B #2B0524 #2B1F05 #052B0C
square
#05112B #2B0524 #2B1F05 #052B0C
split-complementary
#05112B #2B0C05 #242B05
monochromatic
#030B1B #030B1B #05112B #0B2762 #123C99

Accessibility & contrast

On white

18.72
#05112B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#05112B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05112B
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05112B#FFFFFF#000000##FFFFFF
##05112B1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #05112b;
/* rgb */ color: rgb(5, 17, 43);
/* oklch */ color: oklch(18.4% 0.056 262.3);
Tailwind
colors: {
  custom: {
    50: '#4a4f64',
    500: '#05112b',
    950: '#000000',
  },
}
SCSS
$custom: #05112b;
$custom-light: #4a4f64;
$custom-dark: #000000;
JSON
{
  "hex": "#05112b",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 43
  },
  "hsl": {
    "h": 221.053,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18449,
    "c": 0.05596,
    "h": 262.3
  },
  "luminance": 0.00608
}

Semantic roles & 50–950 ramp

primary
#05112B
secondary
#6D541F
accent
#B832F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #05112B

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

Preview Lab → · Contrast checker → · Palette generator →

#05112B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva