#05122B#05122B

#05122B is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.7% C 0.054 H 260.9°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#05122B
RGBrgb(5, 18, 43)
HSLhsl(219, 79%, 9%)
HSVhsv(219, 88%, 17%)
CMYKcmyk(88.4%, 58.1%, 0%, 83.1%)
CIE-LABlab(5.77, 4.39, -18.31)
CIE-LCHlch(5.77, 18.83, 283.50°)
OKLaboklab(18.73% -0.0086 -0.0537)
OKLCHoklch(18.73% 0.054 260.9)
XYZxyz(0.7148, 0.6392, 2.3707)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05122B #2B1E05
analogous
#05252B #05122B #0B052B
triadic
#05122B #2B0512 #122B05
tetradic
#05122B #2B0525 #2B1E05 #052B0B
square
#05122B #2B0525 #2B1E05 #052B0B
split-complementary
#05122B #2B0B05 #252B05
monochromatic
#030B1B #030B1B #05122B #0B2962 #124099

Accessibility & contrast

On white

18.62
#05122B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#05122B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05122B
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05122B#FFFFFF#000000##FFFFFF
##05122B1.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)
#05152C
Deuteranopia (green-blind)
#01112A
Tritanopia (blue-blind)
#00181C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #05122b;
/* rgb */ color: rgb(5, 18, 43);
/* oklch */ color: oklch(18.7% 0.054 260.9);
Tailwind
colors: {
  custom: {
    50: '#4a4f64',
    500: '#05122b',
    950: '#000000',
  },
}
SCSS
$custom: #05122b;
$custom-light: #4a4f64;
$custom-dark: #000000;
JSON
{
  "hex": "#05122b",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 43
  },
  "hsl": {
    "h": 219.474,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18726,
    "c": 0.05441,
    "h": 260.9
  },
  "luminance": 0.00639
}

Semantic roles & 50–950 ramp

primary
#05122B
secondary
#6D521F
accent
#B332F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05122B

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

Preview Lab → · Contrast checker → · Palette generator →

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