#050834#050834

#050834 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.085 H 270.0°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#050834
RGBrgb(5, 8, 52)
HSLhsl(236, 82%, 11%)
HSVhsv(236, 90%, 20%)
CMYKcmyk(90.4%, 84.6%, 0%, 79.6%)
CIE-LABlab(4.10, 13.83, -27.67)
CIE-LCHlch(4.10, 30.94, 296.56°)
OKLaboklab(17.28% 0 -0.0846)
OKLCHoklch(17.28% 0.085 270)
XYZxyz(0.7690, 0.4538, 3.2952)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050834 #343105
analogous
#051F34 #050834 #190534
triadic
#050834 #340508 #083405
tetradic
#050834 #34051F #343105 #053419
square
#050834 #34051F #343105 #053419
split-complementary
#050834 #341905 #1F3405
monochromatic
#03041C #03041C #050834 #0A116C #1019A4

Accessibility & contrast

On white

19.25
#050834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#050834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050834
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050834#FFFFFF#000000##FFFFFF
##0508341.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001135
Deuteranopia (green-blind)
#000C33
Tritanopia (blue-blind)
#00141D
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #050834;
/* rgb */ color: rgb(5, 8, 52);
/* oklch */ color: oklch(17.3% 0.085 270.0);
Tailwind
colors: {
  custom: {
    50: '#4c4a6c',
    500: '#050834',
    950: '#000000',
  },
}
SCSS
$custom: #050834;
$custom-light: #4c4a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#050834",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 236.17,
    "s": 82.456,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17284,
    "c": 0.08461,
    "h": 270
  },
  "luminance": 0.00454
}

Semantic roles & 50–950 ramp

primary
#050834
secondary
#75701F
accent
#EC2FF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #050834

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

Preview Lab → · Contrast checker → · Palette generator →

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