#050C36#050C36

#050C36 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.4% C 0.082 H 268.2°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#050C36
RGBrgb(5, 12, 54)
HSLhsl(231, 83%, 12%)
HSVhsv(231, 91%, 21%)
CMYKcmyk(90.7%, 77.8%, 0%, 78.8%)
CIE-LABlab(5.07, 13.35, -27.58)
CIE-LCHlch(5.07, 30.64, 295.83°)
OKLaboklab(18.38% -0.0026 -0.0821)
OKLCHoklch(18.38% 0.082 268.2)
XYZxyz(0.8597, 0.5615, 3.5524)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C36 #362F05
analogous
#052536 #050C36 #170536
triadic
#050C36 #36050C #0C3605
tetradic
#050C36 #360525 #362F05 #053617
square
#050C36 #360525 #362F05 #053617
split-complementary
#050C36 #361705 #253605
monochromatic
#03061C #03061C #050C36 #0A186E #0F25A6

Accessibility & contrast

On white

18.88
#050C36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#050C36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C36
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C36#FFFFFF#000000##FFFFFF
##050C361.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#000F35
Tritanopia (blue-blind)
#00171F
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #050c36;
/* rgb */ color: rgb(5, 12, 54);
/* oklch */ color: oklch(18.4% 0.082 268.2);
Tailwind
colors: {
  custom: {
    50: '#4e4b6d',
    500: '#050c36',
    950: '#000000',
  },
}
SCSS
$custom: #050c36;
$custom-light: #4e4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#050c36",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 54
  },
  "hsl": {
    "h": 231.429,
    "s": 83.051,
    "l": 11.569
  },
  "oklch": {
    "l": 0.1838,
    "c": 0.08215,
    "h": 268.2
  },
  "luminance": 0.00562
}

Semantic roles & 50–950 ramp

primary
#050C36
secondary
#776B20
accent
#DC2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #050C36

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

Preview Lab → · Contrast checker → · Palette generator →

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