#050F42#050F42

#050F42 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.097 H 266.9°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#050F42
RGBrgb(5, 15, 66)
HSLhsl(230, 86%, 14%)
HSVhsv(230, 92%, 26%)
CMYKcmyk(92.4%, 77.3%, 0%, 74.1%)
CIE-LABlab(6.93, 18.12, -33.20)
CIE-LCHlch(6.93, 37.83, 298.63°)
OKLaboklab(20.45% -0.0052 -0.0965)
OKLCHoklch(20.45% 0.097 266.9)
XYZxyz(1.2164, 0.7671, 5.2372)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050F42 #423805
analogous
#052E42 #050F42 #1A0542
triadic
#050F42 #42050F #0F4205
tetradic
#050F42 #42052E #423805 #05421A
square
#050F42 #42052E #423805 #05421A
split-complementary
#050F42 #421A05 #2E4205
monochromatic
#02061C #02061C #050F42 #091C7B #0E29B4

Accessibility & contrast

On white

18.21
#050F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050F42
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050F42#FFFFFF#000000##FFFFFF
##050F421.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#001D27
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #050f42;
/* rgb */ color: rgb(5, 15, 66);
/* oklch */ color: oklch(20.5% 0.097 266.9);
Tailwind
colors: {
  custom: {
    50: '#524d77',
    500: '#050f42',
    950: '#000000',
  },
}
SCSS
$custom: #050f42;
$custom-light: #524d77;
$custom-dark: #000000;
JSON
{
  "hex": "#050f42",
  "rgb": {
    "r": 5,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 230.164,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20451,
    "c": 0.09662,
    "h": 266.9
  },
  "luminance": 0.00767
}

Semantic roles & 50–950 ramp

primary
#050F42
secondary
#827220
accent
#DA2CFC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #050F42

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

Preview Lab → · Contrast checker → · Palette generator →

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