#050C2F#050C2F

#050C2F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.071 H 268.1°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#050C2F
RGBrgb(5, 12, 47)
HSLhsl(230, 81%, 10%)
HSVhsv(230, 89%, 18%)
CMYKcmyk(89.4%, 74.5%, 0%, 81.6%)
CIE-LABlab(4.52, 9.48, -23.29)
CIE-LCHlch(4.52, 25.14, 292.15°)
OKLaboklab(17.57% -0.0023 -0.0707)
OKLCHoklch(17.57% 0.071 268.1)
XYZxyz(0.7070, 0.5004, 2.7481)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050C2F #2F2805
analogous
#05212F #050C2F #13052F
triadic
#050C2F #2F050C #0C2F05
tetradic
#050C2F #2F0521 #2F2805 #052F13
square
#050C2F #2F0521 #2F2805 #052F13
split-complementary
#050C2F #2F1305 #212F05
monochromatic
#03071C #03071C #050C2F #0B1A66 #11289E

Accessibility & contrast

On white

19.09
#050C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050C2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050C2F
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050C2F#FFFFFF#000000##FFFFFF
##050C2F1.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #050c2f;
/* rgb */ color: rgb(5, 12, 47);
/* oklch */ color: oklch(17.6% 0.071 268.1);
Tailwind
colors: {
  custom: {
    50: '#4b4c68',
    500: '#050c2f',
    950: '#000000',
  },
}
SCSS
$custom: #050c2f;
$custom-light: #4b4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#050c2f",
  "rgb": {
    "r": 5,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 230,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.1757,
    "c": 0.07073,
    "h": 268.1
  },
  "luminance": 0.005
}

Semantic roles & 50–950 ramp

primary
#050C2F
secondary
#71631F
accent
#D631F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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