#05122C#05122C

#05122C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.8% C 0.056 H 261.4°. Best body text is #FFFFFF at 18.59:1 contrast (WCAG AA passes).

Color values

HEX#05122C
RGBrgb(5, 18, 44)
HSLhsl(220, 80%, 10%)
HSVhsv(220, 89%, 17%)
CMYKcmyk(88.6%, 59.1%, 0%, 82.7%)
CIE-LABlab(5.84, 4.87, -18.95)
CIE-LCHlch(5.84, 19.56, 284.41°)
OKLaboklab(18.82% -0.0084 -0.0555)
OKLCHoklch(18.82% 0.056 261.4)
XYZxyz(0.7334, 0.6466, 2.4685)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05122C #2C1F05
analogous
#05262C #05122C #0C052C
triadic
#05122C #2C0512 #122C05
tetradic
#05122C #2C0526 #2C1F05 #052C0C
square
#05122C #2C0526 #2C1F05 #052C0C
split-complementary
#05122C #2C0C05 #262C05
monochromatic
#030B1B #030B1B #05122C #0B2863 #113F9A

Accessibility & contrast

On white

18.59
#05122C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05122C
18.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05122C#FFFFFF#000000##FFFFFF
##05122C1.0018.591.1318.59
#FFFFFF18.591.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05152D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#00181C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #05122c;
/* rgb */ color: rgb(5, 18, 44);
/* oklch */ color: oklch(18.8% 0.056 261.4);
Tailwind
colors: {
  custom: {
    50: '#4a4f65',
    500: '#05122c',
    950: '#000000',
  },
}
SCSS
$custom: #05122c;
$custom-light: #4a4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#05122c",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 44
  },
  "hsl": {
    "h": 220,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18817,
    "c": 0.05616,
    "h": 261.4
  },
  "luminance": 0.00647
}

Semantic roles & 50–950 ramp

primary
#05122C
secondary
#6E531F
accent
#B532F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #05122C

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

Preview Lab → · Contrast checker → · Palette generator →

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