#05062C#05062C

#05062C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.075 H 272.2°. Best body text is #FFFFFF at 19.65:1 contrast (WCAG AA passes).

Color values

HEX#05062C
RGBrgb(5, 6, 44)
HSLhsl(238, 80%, 10%)
HSVhsv(238, 89%, 17%)
CMYKcmyk(88.6%, 86.4%, 0%, 82.7%)
CIE-LABlab(3.11, 10.44, -23.27)
CIE-LCHlch(3.11, 25.51, 294.17°)
OKLaboklab(15.77% 0.0029 -0.0753)
OKLCHoklch(15.77% 0.075 272.2)
XYZxyz(0.5822, 0.3443, 2.4182)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05062C #2C2B05
analogous
#051A2C #05062C #18052C
triadic
#05062C #2C0506 #062C05
tetradic
#05062C #2C051A #2C2B05 #052C18
square
#05062C #2C051A #2C2B05 #052C18
split-complementary
#05062C #2C1805 #1A2C05
monochromatic
#03041B #03041B #05062C #0B0D63 #11159A

Accessibility & contrast

On white

19.65
#05062C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05062C
19.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05062C#FFFFFF#000000##FFFFFF
##05062C1.0019.651.0719.65
#FFFFFF19.651.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #05062c;
/* rgb */ color: rgb(5, 6, 44);
/* oklch */ color: oklch(15.8% 0.075 272.2);
Tailwind
colors: {
  custom: {
    50: '#4a4965',
    500: '#05062c',
    950: '#000000',
  },
}
SCSS
$custom: #05062c;
$custom-light: #4a4965;
$custom-dark: #000000;
JSON
{
  "hex": "#05062c",
  "rgb": {
    "r": 5,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 238.462,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15768,
    "c": 0.07534,
    "h": 272.2
  },
  "luminance": 0.00344
}

Semantic roles & 50–950 ramp

primary
#05062C
secondary
#6E6C1F
accent
#F132F6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #05062C

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

Preview Lab → · Contrast checker → · Palette generator →

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