#050C38#050C38

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

Color values

HEX#050C38
RGBrgb(5, 12, 56)
HSLhsl(232, 84%, 12%)
HSVhsv(232, 91%, 22%)
CMYKcmyk(91.1%, 78.6%, 0%, 78%)
CIE-LABlab(5.24, 14.51, -28.76)
CIE-LCHlch(5.24, 32.21, 296.77°)
OKLaboklab(18.62% -0.0028 -0.0853)
OKLCHoklch(18.62% 0.085 268.1)
XYZxyz(0.9076, 0.5806, 3.8049)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C38 #383105
analogous
#052638 #050C38 #180538
triadic
#050C38 #38050C #0C3805
tetradic
#050C38 #380526 #383105 #053818
square
#050C38 #380526 #383105 #053818
split-complementary
#050C38 #381805 #263805
monochromatic
#03061C #03061C #050C38 #0A1870 #0F24A8

Accessibility & contrast

On white

18.81
#050C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050C38
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C38#FFFFFF#000000##FFFFFF
##050C381.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#000F37
Tritanopia (blue-blind)
#001820
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #050c38;
/* rgb */ color: rgb(5, 12, 56);
/* oklch */ color: oklch(18.6% 0.085 268.1);
Tailwind
colors: {
  custom: {
    50: '#4e4b6f',
    500: '#050c38',
    950: '#000000',
  },
}
SCSS
$custom: #050c38;
$custom-light: #4e4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#050c38",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 231.765,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.1862,
    "c": 0.08531,
    "h": 268.1
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#050C38
secondary
#796D20
accent
#DE2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050C38

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

Preview Lab → · Contrast checker → · Palette generator →

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