#050831#050831

#050831 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.9% C 0.080 H 270.4°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#050831
RGBrgb(5, 8, 49)
HSLhsl(236, 81%, 11%)
HSVhsv(236, 90%, 19%)
CMYKcmyk(89.8%, 83.7%, 0%, 80.8%)
CIE-LABlab(3.86, 12.17, -25.83)
CIE-LCHlch(3.86, 28.55, 295.24°)
OKLaboklab(16.9% 0.0005 -0.0799)
OKLCHoklch(16.9% 0.08 270.4)
XYZxyz(0.7036, 0.4276, 2.9506)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050831 #312E05
analogous
#051E31 #050831 #180531
triadic
#050831 #310508 #083105
tetradic
#050831 #31051E #312E05 #053118
square
#050831 #31051E #312E05 #053118
split-complementary
#050831 #311805 #1E3105
monochromatic
#03051C #03051C #050831 #0B1169 #101AA0

Accessibility & contrast

On white

19.34
#050831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050831
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050831#FFFFFF#000000##FFFFFF
##0508311.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001032
Deuteranopia (green-blind)
#000C30
Tritanopia (blue-blind)
#00131B
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #050831;
/* rgb */ color: rgb(5, 8, 49);
/* oklch */ color: oklch(16.9% 0.080 270.4);
Tailwind
colors: {
  custom: {
    50: '#4b4a69',
    500: '#050831',
    950: '#000000',
  },
}
SCSS
$custom: #050831;
$custom-light: #4b4a69;
$custom-dark: #000000;
JSON
{
  "hex": "#050831",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 49
  },
  "hsl": {
    "h": 235.909,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.169,
    "c": 0.07994,
    "h": 270.4
  },
  "luminance": 0.00428
}

Semantic roles & 50–950 ramp

primary
#050831
secondary
#726D1F
accent
#EA30F8
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #050831

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

Preview Lab → · Contrast checker → · Palette generator →

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