#050538#050538

#050538 is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.2% C 0.095 H 270.5°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#050538
RGBrgb(5, 5, 56)
HSLhsl(240, 84%, 12%)
HSVhsv(240, 91%, 22%)
CMYKcmyk(91.1%, 91.1%, 0%, 78%)
CIE-LABlab(3.85, 17.42, -31.02)
CIE-LCHlch(3.85, 35.57, 299.32°)
OKLaboklab(17.16% 0.0008 -0.095)
OKLCHoklch(17.16% 0.095 270.5)
XYZxyz(0.8304, 0.4262, 3.7791)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050538 #383805
analogous
#051F38 #050538 #1F0538
triadic
#050538 #380505 #053805
tetradic
#050538 #38051F #383805 #05381F
square
#050538 #38051F #383805 #05381F
split-complementary
#050538 #381F05 #1F3805
monochromatic
#03031C #03031C #050538 #0A0A70 #0F0FA8

Accessibility & contrast

On white

19.35
#050538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050538
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050538#FFFFFF#000000##FFFFFF
##0505381.0019.351.0919.35
#FFFFFF19.351.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001039
Deuteranopia (green-blind)
#000B37
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #050538;
/* rgb */ color: rgb(5, 5, 56);
/* oklch */ color: oklch(17.2% 0.095 270.5);
Tailwind
colors: {
  custom: {
    50: '#4e486f',
    500: '#050538',
    950: '#000000',
  },
}
SCSS
$custom: #050538;
$custom-light: #4e486f;
$custom-dark: #000000;
JSON
{
  "hex": "#050538",
  "rgb": {
    "r": 5,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 240,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17162,
    "c": 0.095,
    "h": 270.5
  },
  "luminance": 0.00426
}

Semantic roles & 50–950 ramp

primary
#050538
secondary
#797920
accent
#FA2EFA
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #050538

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

Preview Lab → · Contrast checker → · Palette generator →

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