#050F2F#050F2F

#050F2F is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.3% C 0.066 H 265.7°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#050F2F
RGBrgb(5, 15, 47)
HSLhsl(226, 81%, 10%)
HSVhsv(226, 89%, 18%)
CMYKcmyk(89.4%, 68.1%, 0%, 81.6%)
CIE-LABlab(5.23, 8.02, -22.15)
CIE-LCHlch(5.23, 23.56, 289.91°)
OKLaboklab(18.31% -0.005 -0.0659)
OKLCHoklch(18.31% 0.066 265.7)
XYZxyz(0.7463, 0.5791, 2.7612)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050F2F #2F2505
analogous
#05242F #050F2F #10052F
triadic
#050F2F #2F050F #0F2F05
tetradic
#050F2F #2F0524 #2F2505 #052F10
square
#050F2F #2F0524 #2F2505 #052F10
split-complementary
#050F2F #2F1005 #242F05
monochromatic
#03091C #03091C #050F2F #0B2166 #11329E

Accessibility & contrast

On white

18.82
#050F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050F2F
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050F2F#FFFFFF#000000##FFFFFF
##050F2F1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #050f2f;
/* rgb */ color: rgb(5, 15, 47);
/* oklch */ color: oklch(18.3% 0.066 265.7);
Tailwind
colors: {
  custom: {
    50: '#4b4d68',
    500: '#050f2f',
    950: '#000000',
  },
}
SCSS
$custom: #050f2f;
$custom-light: #4b4d68;
$custom-dark: #000000;
JSON
{
  "hex": "#050f2f",
  "rgb": {
    "r": 5,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 225.714,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18309,
    "c": 0.06609,
    "h": 265.7
  },
  "luminance": 0.00579
}

Semantic roles & 50–950 ramp

primary
#050F2F
secondary
#715D1F
accent
#C831F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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