#05112C#05112C

#05112C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.5% C 0.058 H 262.7°. Best body text is #FFFFFF at 18.70:1 contrast (WCAG AA passes).

Color values

HEX#05112C
RGBrgb(5, 17, 44)
HSLhsl(222, 80%, 10%)
HSVhsv(222, 89%, 17%)
CMYKcmyk(88.6%, 61.4%, 0%, 82.7%)
CIE-LABlab(5.55, 5.45, -19.40)
CIE-LCHlch(5.55, 20.15, 285.69°)
OKLaboklab(18.54% -0.0073 -0.0573)
OKLCHoklch(18.54% 0.058 262.7)
XYZxyz(0.7175, 0.6149, 2.4633)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05112C #2C2005
analogous
#05252C #05112C #0C052C
triadic
#05112C #2C0511 #112C05
tetradic
#05112C #2C0525 #2C2005 #052C0C
square
#05112C #2C0525 #2C2005 #052C0C
split-complementary
#05112C #2C0C05 #252C05
monochromatic
#030B1B #030B1B #05112C #0B2663 #113B9A

Accessibility & contrast

On white

18.70
#05112C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05112C
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05112C#FFFFFF#000000##FFFFFF
##05112C1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05112c;
/* rgb */ color: rgb(5, 17, 44);
/* oklch */ color: oklch(18.5% 0.058 262.7);
Tailwind
colors: {
  custom: {
    50: '#4a4f65',
    500: '#05112c',
    950: '#000000',
  },
}
SCSS
$custom: #05112c;
$custom-light: #4a4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#05112c",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 44
  },
  "hsl": {
    "h": 221.538,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18542,
    "c": 0.05772,
    "h": 262.7
  },
  "luminance": 0.00615
}

Semantic roles & 50–950 ramp

primary
#05112C
secondary
#6E551F
accent
#BA32F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #05112C

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

Preview Lab → · Contrast checker → · Palette generator →

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