#050940#050940

#050940 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.1% C 0.101 H 268.6°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#050940
RGBrgb(5, 9, 64)
HSLhsl(236, 86%, 14%)
HSVhsv(236, 92%, 25%)
CMYKcmyk(92.2%, 85.9%, 0%, 74.9%)
CIE-LABlab(5.40, 20.36, -34.28)
CIE-LCHlch(5.40, 39.87, 300.70°)
OKLaboklab(19.06% -0.0025 -0.1011)
OKLCHoklch(19.06% 0.101 268.6)
XYZxyz(1.0854, 0.5977, 4.9077)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050940 #403C05
analogous
#052640 #050940 #1E0540
triadic
#050940 #400509 #094005
tetradic
#050940 #400526 #403C05 #05401E
square
#050940 #400526 #403C05 #05401E
split-complementary
#050940 #401E05 #264005
monochromatic
#02041C #02041C #050940 #091179 #0E19B2

Accessibility & contrast

On white

18.76
#050940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##050940#FFFFFF#000000##FFFFFF
##0509401.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)
#001542
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #050940;
/* rgb */ color: rgb(5, 9, 64);
/* oklch */ color: oklch(19.1% 0.101 268.6);
Tailwind
colors: {
  custom: {
    50: '#524976',
    500: '#050940',
    950: '#000000',
  },
}
SCSS
$custom: #050940;
$custom-light: #524976;
$custom-dark: #000000;
JSON
{
  "hex": "#050940",
  "rgb": {
    "r": 5,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 235.932,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.19064,
    "c": 0.10111,
    "h": 268.6
  },
  "luminance": 0.00598
}

Semantic roles & 50–950 ramp

primary
#050940
secondary
#817A20
accent
#EE2CFC
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #050940

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

Preview Lab → · Contrast checker → · Palette generator →

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