#050C2A#050C2A

#050C2A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.0% C 0.062 H 267.8°. Best body text is #FFFFFF at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#050C2A
RGBrgb(5, 12, 42)
HSLhsl(229, 79%, 9%)
HSVhsv(229, 88%, 16%)
CMYKcmyk(88.1%, 71.4%, 0%, 83.5%)
CIE-LABlab(4.18, 7.06, -20.07)
CIE-LCHlch(4.18, 21.28, 289.38°)
OKLaboklab(17.03% -0.0024 -0.0621)
OKLCHoklch(17.03% 0.062 267.8)
XYZxyz(0.6118, 0.4623, 2.2470)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C2A #2A2305
analogous
#051F2A #050C2A #11052A
triadic
#050C2A #2A050C #0C2A05
tetradic
#050C2A #2A051F #2A2305 #052A11
square
#050C2A #2A051F #2A2305 #052A11
split-complementary
#050C2A #2A1105 #1F2A05
monochromatic
#03081B #03081B #050C2A #0C1C61 #122B97

Accessibility & contrast

On white

19.22
#050C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#050C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C2A
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C2A#FFFFFF#000000##FFFFFF
##050C2A1.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#000D29
Tritanopia (blue-blind)
#001319
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050c2a;
/* rgb */ color: rgb(5, 12, 42);
/* oklch */ color: oklch(17.0% 0.062 267.8);
Tailwind
colors: {
  custom: {
    50: '#4a4c63',
    500: '#050c2a',
    950: '#000000',
  },
}
SCSS
$custom: #050c2a;
$custom-light: #4a4c63;
$custom-dark: #000000;
JSON
{
  "hex": "#050c2a",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 228.649,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17025,
    "c": 0.06217,
    "h": 267.8
  },
  "luminance": 0.00462
}

Semantic roles & 50–950 ramp

primary
#050C2A
secondary
#6C5D1F
accent
#D033F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #050C2A

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

Preview Lab → · Contrast checker → · Palette generator →

#050C2A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva