#050C42#050C42

#050C42 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.9% C 0.100 H 267.8°. Best body text is #FFFFFF at 18.46:1 contrast (WCAG AA passes).

Color values

HEX#050C42
RGBrgb(5, 12, 66)
HSLhsl(233, 86%, 14%)
HSVhsv(233, 92%, 26%)
CMYKcmyk(92.4%, 81.8%, 0%, 74.1%)
CIE-LABlab(6.22, 19.91, -34.37)
CIE-LCHlch(6.22, 39.72, 300.09°)
OKLaboklab(19.86% -0.0039 -0.1004)
OKLCHoklch(19.86% 0.1 267.8)
XYZxyz(1.1771, 0.6884, 5.2240)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C42 #423B05
analogous
#052B42 #050C42 #1D0542
triadic
#050C42 #42050C #0C4205
tetradic
#050C42 #42052B #423B05 #05421D
square
#050C42 #42052B #423B05 #05421D
split-complementary
#050C42 #421D05 #2B4205
monochromatic
#02051C #02051C #050C42 #09167B #0E21B4

Accessibility & contrast

On white

18.46
#050C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#050C42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C42
18.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C42#FFFFFF#000000##FFFFFF
##050C421.0018.461.1418.46
#FFFFFF18.461.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001141
Tritanopia (blue-blind)
#001C26
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #050c42;
/* rgb */ color: rgb(5, 12, 66);
/* oklch */ color: oklch(19.9% 0.100 267.8);
Tailwind
colors: {
  custom: {
    50: '#524b77',
    500: '#050c42',
    950: '#000000',
  },
}
SCSS
$custom: #050c42;
$custom-light: #524b77;
$custom-dark: #000000;
JSON
{
  "hex": "#050c42",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 66
  },
  "hsl": {
    "h": 233.115,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19865,
    "c": 0.10045,
    "h": 267.8
  },
  "luminance": 0.00689
}

Semantic roles & 50–950 ramp

primary
#050C42
secondary
#827720
accent
#E42CFC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #050C42

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

Preview Lab → · Contrast checker → · Palette generator →

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