#050840#050840

#050840 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.9% C 0.102 H 268.8°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#050840
RGBrgb(5, 8, 64)
HSLhsl(237, 86%, 14%)
HSVhsv(237, 92%, 25%)
CMYKcmyk(92.2%, 87.5%, 0%, 74.9%)
CIE-LABlab(5.20, 20.83, -34.60)
CIE-LCHlch(5.20, 40.39, 301.04°)
OKLaboklab(18.88% -0.0021 -0.1023)
OKLCHoklch(18.88% 0.102 268.8)
XYZxyz(1.0745, 0.5760, 4.9040)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050840 #403D05
analogous
#052540 #050840 #1F0540
triadic
#050840 #400508 #084005
tetradic
#050840 #400525 #403D05 #05401F
square
#050840 #400525 #403D05 #05401F
split-complementary
#050840 #401F05 #254005
monochromatic
#02041C #02041C #050840 #090F79 #0E16B2

Accessibility & contrast

On white

18.83
#050840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050840
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050840#FFFFFF#000000##FFFFFF
##0508401.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #050840;
/* rgb */ color: rgb(5, 8, 64);
/* oklch */ color: oklch(18.9% 0.102 268.8);
Tailwind
colors: {
  custom: {
    50: '#524976',
    500: '#050840',
    950: '#000000',
  },
}
SCSS
$custom: #050840;
$custom-light: #524976;
$custom-dark: #000000;
JSON
{
  "hex": "#050840",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 236.949,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18882,
    "c": 0.10232,
    "h": 268.8
  },
  "luminance": 0.00576
}

Semantic roles & 50–950 ramp

primary
#050840
secondary
#817C20
accent
#F12CFC
background
#F5F4F7
surface
#E8E6ED
border
#C4C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #050840

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

Preview Lab → · Contrast checker → · Palette generator →

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