#050942#050942

#050942 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.3% C 0.104 H 268.4°. Best body text is #FFFFFF at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#050942
RGBrgb(5, 9, 66)
HSLhsl(236, 86%, 14%)
HSVhsv(236, 92%, 26%)
CMYKcmyk(92.4%, 86.4%, 0%, 74.1%)
CIE-LABlab(5.61, 21.43, -35.37)
CIE-LCHlch(5.61, 41.35, 301.21°)
OKLaboklab(19.33% -0.0028 -0.1039)
OKLCHoklch(19.33% 0.104 268.4)
XYZxyz(1.1433, 0.6208, 5.2128)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050942 #423E05
analogous
#052842 #050942 #200542
triadic
#050942 #420509 #094205
tetradic
#050942 #420528 #423E05 #054220
square
#050942 #420528 #423E05 #054220
split-complementary
#050942 #422005 #284205
monochromatic
#02041C #02041C #050942 #09117B #0E19B4

Accessibility & contrast

On white

18.68
#050942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#050942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050942
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050942#FFFFFF#000000##FFFFFF
##0509421.0018.681.1218.68
#FFFFFF18.681.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#000F41
Tritanopia (blue-blind)
#001A25
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050942;
/* rgb */ color: rgb(5, 9, 66);
/* oklch */ color: oklch(19.3% 0.104 268.4);
Tailwind
colors: {
  custom: {
    50: '#534977',
    500: '#050942',
    950: '#000000',
  },
}
SCSS
$custom: #050942;
$custom-light: #534977;
$custom-dark: #000000;
JSON
{
  "hex": "#050942",
  "rgb": {
    "r": 5,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 236.066,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19333,
    "c": 0.10397,
    "h": 268.4
  },
  "luminance": 0.00621
}

Semantic roles & 50–950 ramp

primary
#050942
secondary
#827C20
accent
#EE2CFC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #050942

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

Preview Lab → · Contrast checker → · Palette generator →

#050942 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva