#05122A#05122A

#05122A is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.6% C 0.053 H 260.4°. Best body text is #FFFFFF at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#05122A
RGBrgb(5, 18, 42)
HSLhsl(219, 79%, 9%)
HSVhsv(219, 88%, 16%)
CMYKcmyk(88.1%, 57.1%, 0%, 83.5%)
CIE-LABlab(5.71, 3.93, -17.66)
CIE-LCHlch(5.71, 18.09, 282.56°)
OKLaboklab(18.64% -0.0088 -0.0519)
OKLCHoklch(18.64% 0.053 260.4)
XYZxyz(0.6967, 0.6320, 2.2753)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05122A #2A1D05
analogous
#05252A #05122A #0B052A
triadic
#05122A #2A0512 #122A05
tetradic
#05122A #2A0525 #2A1D05 #052A0B
square
#05122A #2A0525 #2A1D05 #052A0B
split-complementary
#05122A #2A0B05 #252A05
monochromatic
#030C1B #030C1B #05122A #0C2961 #124197

Accessibility & contrast

On white

18.64
#05122A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05122A
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05122A#FFFFFF#000000##FFFFFF
##05122A1.0018.641.1318.64
#FFFFFF18.641.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06142B
Deuteranopia (green-blind)
#02112A
Tritanopia (blue-blind)
#00181B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #05122a;
/* rgb */ color: rgb(5, 18, 42);
/* oklch */ color: oklch(18.6% 0.053 260.4);
Tailwind
colors: {
  custom: {
    50: '#4a4f63',
    500: '#05122a',
    950: '#000000',
  },
}
SCSS
$custom: #05122a;
$custom-light: #4a4f63;
$custom-dark: #000000;
JSON
{
  "hex": "#05122a",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 42
  },
  "hsl": {
    "h": 218.919,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18637,
    "c": 0.05264,
    "h": 260.4
  },
  "luminance": 0.00632
}

Semantic roles & 50–950 ramp

primary
#05122A
secondary
#6C511F
accent
#B133F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #05122A

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

Preview Lab → · Contrast checker → · Palette generator →

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