#050731#050731

#050731 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.082 H 270.8°. Best body text is #FFFFFF at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#050731
RGBrgb(5, 7, 49)
HSLhsl(237, 81%, 11%)
HSVhsv(237, 90%, 19%)
CMYKcmyk(89.8%, 85.7%, 0%, 80.8%)
CIE-LABlab(3.67, 12.58, -26.14)
CIE-LCHlch(3.67, 29.01, 295.69°)
OKLaboklab(16.67% 0.0012 -0.0815)
OKLCHoklch(16.67% 0.082 270.8)
XYZxyz(0.6928, 0.4059, 2.9470)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050731 #312F05
analogous
#051D31 #050731 #190531
triadic
#050731 #310507 #073105
tetradic
#050731 #31051D #312F05 #053119
square
#050731 #31051D #312F05 #053119
split-complementary
#050731 #311905 #1D3105
monochromatic
#03041C #03041C #050731 #0B0F69 #1017A0

Accessibility & contrast

On white

19.42
#050731 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#050731 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050731
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050731#FFFFFF#000000##FFFFFF
##0507311.0019.421.0819.42
#FFFFFF19.421.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000B30
Tritanopia (blue-blind)
#00131B
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #050731;
/* rgb */ color: rgb(5, 7, 49);
/* oklch */ color: oklch(16.7% 0.082 270.8);
Tailwind
colors: {
  custom: {
    50: '#4b4969',
    500: '#050731',
    950: '#000000',
  },
}
SCSS
$custom: #050731;
$custom-light: #4b4969;
$custom-dark: #000000;
JSON
{
  "hex": "#050731",
  "rgb": {
    "r": 5,
    "g": 7,
    "b": 49
  },
  "hsl": {
    "h": 237.273,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16667,
    "c": 0.0815,
    "h": 270.8
  },
  "luminance": 0.00406
}

Semantic roles & 50–950 ramp

primary
#050731
secondary
#726F1F
accent
#EF30F8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #050731

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

Preview Lab → · Contrast checker → · Palette generator →

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