#050939#050939

#050939 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.091 H 269.2°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#050939
RGBrgb(5, 9, 57)
HSLhsl(235, 84%, 12%)
HSVhsv(235, 91%, 22%)
CMYKcmyk(91.2%, 84.2%, 0%, 77.6%)
CIE-LABlab(4.72, 16.40, -30.33)
CIE-LCHlch(4.72, 34.48, 298.40°)
OKLaboklab(18.14% -0.0013 -0.0908)
OKLCHoklch(18.14% 0.091 269.2)
XYZxyz(0.8985, 0.5229, 3.9237)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050939 #393505
analogous
#052339 #050939 #1B0539
triadic
#050939 #390509 #093905
tetradic
#050939 #390523 #393505 #05391B
square
#050939 #390523 #393505 #05391B
split-complementary
#050939 #391B05 #233905
monochromatic
#02041C #02041C #050939 #0A1271 #0F1BAA

Accessibility & contrast

On white

19.01
#050939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#050939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050939
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050939#FFFFFF#000000##FFFFFF
##0509391.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133A
Deuteranopia (green-blind)
#000D38
Tritanopia (blue-blind)
#001720
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #050939;
/* rgb */ color: rgb(5, 9, 57);
/* oklch */ color: oklch(18.1% 0.091 269.2);
Tailwind
colors: {
  custom: {
    50: '#4f4a70',
    500: '#050939',
    950: '#000000',
  },
}
SCSS
$custom: #050939;
$custom-light: #4f4a70;
$custom-dark: #000000;
JSON
{
  "hex": "#050939",
  "rgb": {
    "r": 5,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 235.385,
    "s": 83.871,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18141,
    "c": 0.09082,
    "h": 269.2
  },
  "luminance": 0.00523
}

Semantic roles & 50–950 ramp

primary
#050939
secondary
#7A7320
accent
#EA2EFA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #050939

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

Preview Lab → · Contrast checker → · Palette generator →

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