#05121F#05121F

#05121F is a very dark, muted cyan. Relative luminance 0.006; OKLCH L 17.8% C 0.033 H 248.6°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#05121F
RGBrgb(5, 18, 31)
HSLhsl(210, 72%, 7%)
HSVhsv(210, 84%, 12%)
CMYKcmyk(83.9%, 41.9%, 0%, 87.8%)
CIE-LABlab(5.09, -0.40, -10.23)
CIE-LCHlch(5.09, 10.24, 267.76°)
OKLaboklab(17.75% -0.0122 -0.0311)
OKLCHoklch(17.75% 0.033 248.6)
XYZxyz(0.5261, 0.5638, 1.3771)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05121F #1F1205
analogous
#051F1F #05121F #05051F
triadic
#05121F #1F0512 #121F05
tetradic
#05121F #1F051F #1F1205 #051F05
square
#05121F #1F051F #1F1205 #051F05
split-complementary
#05121F #1F0505 #1F1F05
monochromatic
#040F1A #040F1A #05121F #0E3154 #164F88

Accessibility & contrast

On white

18.87
#05121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#05121F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05121F
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05121F#FFFFFF#000000##FFFFFF
##05121F1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1320
Deuteranopia (green-blind)
#09101F
Tritanopia (blue-blind)
#001517
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #05121f;
/* rgb */ color: rgb(5, 18, 31);
/* oklch */ color: oklch(17.8% 0.033 248.6);
Tailwind
colors: {
  custom: {
    50: '#48505a',
    500: '#05121f',
    950: '#000000',
  },
}
SCSS
$custom: #05121f;
$custom-light: #48505a;
$custom-dark: #000000;
JSON
{
  "hex": "#05121f",
  "rgb": {
    "r": 5,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 210,
    "s": 72.222,
    "l": 7.059
  },
  "oklch": {
    "l": 0.17754,
    "c": 0.03338,
    "h": 248.6
  },
  "luminance": 0.00564
}

Semantic roles & 50–950 ramp

primary
#05121F
secondary
#604020
accent
#9439EF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000203
muted
#777878

Preview Lab

Preview with #05121F

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

Preview Lab → · Contrast checker → · Palette generator →

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