#05112E#05112E

#05112E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.061 H 263.4°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#05112E
RGBrgb(5, 17, 46)
HSLhsl(222, 80%, 10%)
HSVhsv(222, 89%, 18%)
CMYKcmyk(89.1%, 63%, 0%, 82%)
CIE-LABlab(5.69, 6.43, -20.67)
CIE-LCHlch(5.69, 21.65, 287.27°)
OKLaboklab(18.73% -0.007 -0.0608)
OKLCHoklch(18.73% 0.061 263.4)
XYZxyz(0.7560, 0.6303, 2.6661)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05112E #2E2205
analogous
#05252E #05112E #0E052E
triadic
#05112E #2E0511 #112E05
tetradic
#05112E #2E0525 #2E2205 #052E0E
square
#05112E #2E0525 #2E2205 #052E0E
split-complementary
#05112E #2E0E05 #252E05
monochromatic
#030A1C #030A1C #05112E #0B2565 #113A9C

Accessibility & contrast

On white

18.65
#05112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05112E
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05112E#FFFFFF#000000##FFFFFF
##05112E1.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05112e;
/* rgb */ color: rgb(5, 17, 46);
/* oklch */ color: oklch(18.7% 0.061 263.4);
Tailwind
colors: {
  custom: {
    50: '#4b4f67',
    500: '#05112e',
    950: '#000000',
  },
}
SCSS
$custom: #05112e;
$custom-light: #4b4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#05112e",
  "rgb": {
    "r": 5,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 222.439,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.18732,
    "c": 0.06122,
    "h": 263.4
  },
  "luminance": 0.0063
}

Semantic roles & 50–950 ramp

primary
#05112E
secondary
#70581F
accent
#BD31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05112E

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

Preview Lab → · Contrast checker → · Palette generator →

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