#050C2C#050C2C

#050C2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.2% C 0.066 H 268.0°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#050C2C
RGBrgb(5, 12, 44)
HSLhsl(229, 80%, 10%)
HSVhsv(229, 89%, 17%)
CMYKcmyk(88.6%, 72.7%, 0%, 82.7%)
CIE-LABlab(4.31, 7.99, -21.37)
CIE-LCHlch(4.31, 22.82, 290.50°)
OKLaboklab(17.24% -0.0023 -0.0656)
OKLCHoklch(17.24% 0.066 268)
XYZxyz(0.6485, 0.4770, 2.4403)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C2C #2C2505
analogous
#05202C #050C2C #12052C
triadic
#050C2C #2C050C #0C2C05
tetradic
#050C2C #2C0520 #2C2505 #052C12
square
#050C2C #2C0520 #2C2505 #052C12
split-complementary
#050C2C #2C1205 #202C05
monochromatic
#03071B #03071B #050C2C #0B1B63 #112A9A

Accessibility & contrast

On white

19.17
#050C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050C2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C2C
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C2C#FFFFFF#000000##FFFFFF
##050C2C1.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#000D2B
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050c2c;
/* rgb */ color: rgb(5, 12, 44);
/* oklch */ color: oklch(17.2% 0.066 268.0);
Tailwind
colors: {
  custom: {
    50: '#4a4c65',
    500: '#050c2c',
    950: '#000000',
  },
}
SCSS
$custom: #050c2c;
$custom-light: #4a4c65;
$custom-dark: #000000;
JSON
{
  "hex": "#050c2c",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 229.231,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17239,
    "c": 0.06563,
    "h": 268
  },
  "luminance": 0.00477
}

Semantic roles & 50–950 ramp

primary
#050C2C
secondary
#6E601F
accent
#D332F6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #050C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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