#05062F#05062F

#05062F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.2% C 0.080 H 271.6°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#05062F
RGBrgb(5, 6, 47)
HSLhsl(239, 81%, 10%)
HSVhsv(239, 89%, 18%)
CMYKcmyk(89.4%, 87.2%, 0%, 81.6%)
CIE-LABlab(3.32, 11.93, -25.20)
CIE-LCHlch(3.32, 27.88, 295.33°)
OKLaboklab(16.16% 0.0023 -0.08)
OKLCHoklch(16.16% 0.08 271.6)
XYZxyz(0.6406, 0.3677, 2.7260)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05062F #2F2E05
analogous
#051B2F #05062F #19052F
triadic
#05062F #2F0506 #062F05
tetradic
#05062F #2F051B #2F2E05 #052F19
square
#05062F #2F051B #2F2E05 #052F19
split-complementary
#05062F #2F1905 #1B2F05
monochromatic
#03041C #03041C #05062F #0B0D66 #11149E

Accessibility & contrast

On white

19.56
#05062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#05062F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05062F
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05062F#FFFFFF#000000##FFFFFF
##05062F1.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #05062f;
/* rgb */ color: rgb(5, 6, 47);
/* oklch */ color: oklch(16.2% 0.080 271.6);
Tailwind
colors: {
  custom: {
    50: '#4b4968',
    500: '#05062f',
    950: '#000000',
  },
}
SCSS
$custom: #05062f;
$custom-light: #4b4968;
$custom-dark: #000000;
JSON
{
  "hex": "#05062f",
  "rgb": {
    "r": 5,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 238.571,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16161,
    "c": 0.08004,
    "h": 271.6
  },
  "luminance": 0.00368
}

Semantic roles & 50–950 ramp

primary
#05062F
secondary
#716F1F
accent
#F231F7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #05062F

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

Preview Lab → · Contrast checker → · Palette generator →

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