#05182F#05182F

#05182F is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.8% C 0.052 H 254.2°. Best body text is #FFFFFF at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#05182F
RGBrgb(5, 24, 47)
HSLhsl(213, 81%, 10%)
HSVhsv(213, 89%, 18%)
CMYKcmyk(89.4%, 48.9%, 0%, 81.6%)
CIE-LABlab(8.05, 2.22, -17.67)
CIE-LCHlch(8.05, 17.81, 277.15°)
OKLaboklab(20.77% -0.0143 -0.0505)
OKLCHoklch(20.77% 0.052 254.2)
XYZxyz(0.9021, 0.8907, 2.8131)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05182F #2F1C05
analogous
#052D2F #05182F #07052F
triadic
#05182F #2F0518 #182F05
tetradic
#05182F #2F052D #2F1C05 #052F07
square
#05182F #2F052D #2F1C05 #052F07
split-complementary
#05182F #2F0705 #2D2F05
monochromatic
#030E1C #030E1C #05182F #0B3466 #11509E

Accessibility & contrast

On white

17.82
#05182F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#05182F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05182F
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05182F#FFFFFF#000000##FFFFFF
##05182F1.0017.821.1817.82
#FFFFFF17.821.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1A30
Deuteranopia (green-blind)
#06162F
Tritanopia (blue-blind)
#001D21
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #05182f;
/* rgb */ color: rgb(5, 24, 47);
/* oklch */ color: oklch(20.8% 0.052 254.2);
Tailwind
colors: {
  custom: {
    50: '#4b5467',
    500: '#05182f',
    950: '#000000',
  },
}
SCSS
$custom: #05182f;
$custom-light: #4b5467;
$custom-dark: #000000;
JSON
{
  "hex": "#05182f",
  "rgb": {
    "r": 5,
    "g": 24,
    "b": 47
  },
  "hsl": {
    "h": 212.857,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20774,
    "c": 0.05246,
    "h": 254.2
  },
  "luminance": 0.00891
}

Semantic roles & 50–950 ramp

primary
#05182F
secondary
#714C1F
accent
#9D31F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #05182F

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

Preview Lab → · Contrast checker → · Palette generator →

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