#050C46#050C46

#050C46 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.4% C 0.106 H 267.6°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#050C46
RGBrgb(5, 12, 70)
HSLhsl(234, 87%, 15%)
HSVhsv(234, 93%, 27%)
CMYKcmyk(92.9%, 82.9%, 0%, 72.5%)
CIE-LABlab(6.66, 21.88, -36.47)
CIE-LCHlch(6.66, 42.53, 300.96°)
OKLaboklab(20.38% -0.0045 -0.1061)
OKLCHoklch(20.38% 0.106 267.6)
XYZxyz(1.2992, 0.7372, 5.8670)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C46 #463F05
analogous
#052D46 #050C46 #1E0546
triadic
#050C46 #46050C #0C4605
tetradic
#050C46 #46052D #463F05 #05461E
square
#050C46 #46052D #463F05 #05461E
split-complementary
#050C46 #461E05 #2D4605
monochromatic
#02051D #02051D #050C46 #09167F #0D20B8

Accessibility & contrast

On white

18.30
#050C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#050C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C46
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C46#FFFFFF#000000##FFFFFF
##050C461.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001848
Deuteranopia (green-blind)
#001145
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #050c46;
/* rgb */ color: rgb(5, 12, 70);
/* oklch */ color: oklch(20.4% 0.106 267.6);
Tailwind
colors: {
  custom: {
    50: '#544b7a',
    500: '#050c46',
    950: '#000000',
  },
}
SCSS
$custom: #050c46;
$custom-light: #544b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#050c46",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 233.538,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20381,
    "c": 0.10623,
    "h": 267.6
  },
  "luminance": 0.00737
}

Semantic roles & 50–950 ramp

primary
#050C46
secondary
#867B21
accent
#E62BFD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #050C46

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

Preview Lab → · Contrast checker → · Palette generator →

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