#050C39#050C39

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

Color values

HEX#050C39
RGBrgb(5, 12, 57)
HSLhsl(232, 84%, 12%)
HSVhsv(232, 91%, 22%)
CMYKcmyk(91.2%, 78.9%, 0%, 77.6%)
CIE-LABlab(5.33, 15.07, -29.34)
CIE-LCHlch(5.33, 32.99, 297.19°)
OKLaboklab(18.74% -0.0029 -0.0868)
OKLCHoklch(18.74% 0.087 268.1)
XYZxyz(0.9323, 0.5905, 3.9349)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C39 #393205
analogous
#052639 #050C39 #180539
triadic
#050C39 #39050C #0C3905
tetradic
#050C39 #390526 #393205 #053918
square
#050C39 #390526 #393205 #053918
split-complementary
#050C39 #391805 #263905
monochromatic
#02061C #02061C #050C39 #0A1871 #0F24AA

Accessibility & contrast

On white

18.78
#050C39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050C39
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C39#FFFFFF#000000##FFFFFF
##050C391.0018.781.1218.78
#FFFFFF18.781.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#000F38
Tritanopia (blue-blind)
#001821
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050c39;
/* rgb */ color: rgb(5, 12, 57);
/* oklch */ color: oklch(18.7% 0.087 268.1);
Tailwind
colors: {
  custom: {
    50: '#4f4b70',
    500: '#050c39',
    950: '#000000',
  },
}
SCSS
$custom: #050c39;
$custom-light: #4f4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#050c39",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 57
  },
  "hsl": {
    "h": 231.923,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18741,
    "c": 0.08687,
    "h": 268.1
  },
  "luminance": 0.00591
}

Semantic roles & 50–950 ramp

primary
#050C39
secondary
#7A6E20
accent
#DF2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050C39

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

Preview Lab → · Contrast checker → · Palette generator →

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