#05112A#05112A

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

Color values

HEX#05112A
RGBrgb(5, 17, 42)
HSLhsl(221, 79%, 9%)
HSVhsv(221, 88%, 16%)
CMYKcmyk(88.1%, 59.5%, 0%, 83.5%)
CIE-LABlab(5.42, 4.52, -18.11)
CIE-LCHlch(5.42, 18.66, 284.00°)
OKLaboklab(18.36% -0.0076 -0.0536)
OKLCHoklch(18.36% 0.054 261.9)
XYZxyz(0.6808, 0.6003, 2.2700)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05112A #2A1E05
analogous
#05242A #05112A #0C052A
triadic
#05112A #2A0511 #112A05
tetradic
#05112A #2A0524 #2A1E05 #052A0C
square
#05112A #2A0524 #2A1E05 #052A0C
split-complementary
#05112A #2A0C05 #242A05
monochromatic
#030B1B #030B1B #05112A #0C2761 #123D97

Accessibility & contrast

On white

18.75
#05112A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05112A
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05112A#FFFFFF#000000##FFFFFF
##05112A1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05142B
Deuteranopia (green-blind)
#001029
Tritanopia (blue-blind)
#00171B
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #05112a;
/* rgb */ color: rgb(5, 17, 42);
/* oklch */ color: oklch(18.4% 0.054 261.9);
Tailwind
colors: {
  custom: {
    50: '#4a4f63',
    500: '#05112a',
    950: '#000000',
  },
}
SCSS
$custom: #05112a;
$custom-light: #4a4f63;
$custom-dark: #000000;
JSON
{
  "hex": "#05112a",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 42
  },
  "hsl": {
    "h": 220.541,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18357,
    "c": 0.05419,
    "h": 261.9
  },
  "luminance": 0.006
}

Semantic roles & 50–950 ramp

primary
#05112A
secondary
#6C531F
accent
#B633F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #05112A

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

Preview Lab → · Contrast checker → · Palette generator →

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