#050631#050631

#050631 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.083 H 271.3°. Best body text is #FFFFFF at 19.50:1 contrast (WCAG AA passes).

Color values

HEX#050631
RGBrgb(5, 6, 49)
HSLhsl(239, 81%, 11%)
HSVhsv(239, 90%, 19%)
CMYKcmyk(89.8%, 87.8%, 0%, 80.8%)
CIE-LABlab(3.47, 12.97, -26.45)
CIE-LCHlch(3.47, 29.46, 296.13°)
OKLaboklab(16.43% 0.0019 -0.0831)
OKLCHoklch(16.43% 0.083 271.3)
XYZxyz(0.6819, 0.3842, 2.9434)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050631 #313005
analogous
#051C31 #050631 #1A0531
triadic
#050631 #310506 #063105
tetradic
#050631 #31051C #313005 #05311A
square
#050631 #31051C #313005 #05311A
split-complementary
#050631 #311A05 #1C3105
monochromatic
#03031C #03031C #050631 #0B0D69 #1014A0

Accessibility & contrast

On white

19.50
#050631 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050631
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050631#FFFFFF#000000##FFFFFF
##0506311.0019.501.0819.50
#FFFFFF19.501.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F32
Deuteranopia (green-blind)
#000A30
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #050631;
/* rgb */ color: rgb(5, 6, 49);
/* oklch */ color: oklch(16.4% 0.083 271.3);
Tailwind
colors: {
  custom: {
    50: '#4b4969',
    500: '#050631',
    950: '#000000',
  },
}
SCSS
$custom: #050631;
$custom-light: #4b4969;
$custom-dark: #000000;
JSON
{
  "hex": "#050631",
  "rgb": {
    "r": 5,
    "g": 6,
    "b": 49
  },
  "hsl": {
    "h": 238.636,
    "s": 81.481,
    "l": 10.588
  },
  "oklch": {
    "l": 0.16428,
    "c": 0.08311,
    "h": 271.3
  },
  "luminance": 0.00384
}

Semantic roles & 50–950 ramp

primary
#050631
secondary
#72711F
accent
#F330F8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #050631

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

Preview Lab → · Contrast checker → · Palette generator →

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