#050F31#050F31

#050F31 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.069 H 266.0°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#050F31
RGBrgb(5, 15, 49)
HSLhsl(226, 81%, 11%)
HSVhsv(226, 90%, 19%)
CMYKcmyk(89.8%, 69.4%, 0%, 80.8%)
CIE-LABlab(5.38, 9.07, -23.40)
CIE-LCHlch(5.38, 25.10, 291.19°)
OKLaboklab(18.52% -0.0048 -0.0693)
OKLCHoklch(18.52% 0.069 266)
XYZxyz(0.7876, 0.5956, 2.9786)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050F31 #312705
analogous
#052531 #050F31 #110531
triadic
#050F31 #31050F #0F3105
tetradic
#050F31 #310525 #312705 #053111
square
#050F31 #310525 #312705 #053111
split-complementary
#050F31 #311105 #253105
monochromatic
#03081C #03081C #050F31 #0B2069 #1031A0

Accessibility & contrast

On white

18.76
#050F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050F31
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050F31#FFFFFF#000000##FFFFFF
##050F311.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001432
Deuteranopia (green-blind)
#001030
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050f31;
/* rgb */ color: rgb(5, 15, 49);
/* oklch */ color: oklch(18.5% 0.069 266.0);
Tailwind
colors: {
  custom: {
    50: '#4c4d69',
    500: '#050f31',
    950: '#000000',
  },
}
SCSS
$custom: #050f31;
$custom-light: #4c4d69;
$custom-dark: #000000;
JSON
{
  "hex": "#050f31",
  "rgb": {
    "r": 5,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 226.364,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18518,
    "c": 0.06949,
    "h": 266
  },
  "luminance": 0.00596
}

Semantic roles & 50–950 ramp

primary
#050F31
secondary
#72601F
accent
#CA30F8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050F31

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

Preview Lab → · Contrast checker → · Palette generator →

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