#050C3A#050C3A

#050C3A is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.088 H 268.1°. Best body text is #FFFFFF at 18.75:1 contrast (WCAG AA passes).

Color values

HEX#050C3A
RGBrgb(5, 12, 58)
HSLhsl(232, 84%, 12%)
HSVhsv(232, 91%, 23%)
CMYKcmyk(91.4%, 79.3%, 0%, 77.3%)
CIE-LABlab(5.43, 15.64, -29.92)
CIE-LCHlch(5.43, 33.76, 297.59°)
OKLaboklab(18.86% -0.003 -0.0884)
OKLCHoklch(18.86% 0.088 268.1)
XYZxyz(0.9575, 0.6006, 4.0676)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C3A #3A3305
analogous
#05273A #050C3A #18053A
triadic
#050C3A #3A050C #0C3A05
tetradic
#050C3A #3A0527 #3A3305 #053A18
square
#050C3A #3A0527 #3A3305 #053A18
split-complementary
#050C3A #3A1805 #273A05
monochromatic
#02061C #02061C #050C3A #0A1872 #0F23AB

Accessibility & contrast

On white

18.75
#050C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#050C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C3A
18.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C3A#FFFFFF#000000##FFFFFF
##050C3A1.0018.751.1218.75
#FFFFFF18.751.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#000F39
Tritanopia (blue-blind)
#001921
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050c3a;
/* rgb */ color: rgb(5, 12, 58);
/* oklch */ color: oklch(18.9% 0.088 268.1);
Tailwind
colors: {
  custom: {
    50: '#4f4b71',
    500: '#050c3a',
    950: '#000000',
  },
}
SCSS
$custom: #050c3a;
$custom-light: #4f4b71;
$custom-dark: #000000;
JSON
{
  "hex": "#050c3a",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 58
  },
  "hsl": {
    "h": 232.075,
    "s": 84.127,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18863,
    "c": 0.08842,
    "h": 268.1
  },
  "luminance": 0.00601
}

Semantic roles & 50–950 ramp

primary
#050C3A
secondary
#7B6F20
accent
#DF2DFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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