#05112F#05112F

#05112F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.063 H 263.7°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#05112F
RGBrgb(5, 17, 47)
HSLhsl(223, 81%, 10%)
HSVhsv(223, 89%, 18%)
CMYKcmyk(89.4%, 63.8%, 0%, 81.6%)
CIE-LABlab(5.77, 6.93, -21.30)
CIE-LCHlch(5.77, 22.40, 288.02°)
OKLaboklab(18.83% -0.0069 -0.0626)
OKLCHoklch(18.83% 0.063 263.7)
XYZxyz(0.7759, 0.6383, 2.7711)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05112F #2F2305
analogous
#05262F #05112F #0E052F
triadic
#05112F #2F0511 #112F05
tetradic
#05112F #2F0526 #2F2305 #052F0E
square
#05112F #2F0526 #2F2305 #052F0E
split-complementary
#05112F #2F0E05 #262F05
monochromatic
#030A1C #030A1C #05112F #0B2566 #11399E

Accessibility & contrast

On white

18.62
#05112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#05112F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05112F
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05112F#FFFFFF#000000##FFFFFF
##05112F1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #05112f;
/* rgb */ color: rgb(5, 17, 47);
/* oklch */ color: oklch(18.8% 0.063 263.7);
Tailwind
colors: {
  custom: {
    50: '#4b4f68',
    500: '#05112f',
    950: '#000000',
  },
}
SCSS
$custom: #05112f;
$custom-light: #4b4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#05112f",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 222.857,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18829,
    "c": 0.06294,
    "h": 263.7
  },
  "luminance": 0.00638
}

Semantic roles & 50–950 ramp

primary
#05112F
secondary
#71591F
accent
#BE31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05112F

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

Preview Lab → · Contrast checker → · Palette generator →

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