#050336#050336

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

Color values

HEX#050336
RGBrgb(5, 3, 54)
HSLhsl(242, 89%, 11%)
HSVhsv(242, 94%, 21%)
CMYKcmyk(90.7%, 94.4%, 0%, 78.8%)
CIE-LABlab(3.28, 17.01, -30.46)
CIE-LCHlch(3.28, 34.89, 299.18°)
OKLaboklab(16.41% 0.0024 -0.0953)
OKLCHoklch(16.41% 0.095 271.4)
XYZxyz(0.7608, 0.3636, 3.5194)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050336 #343603
analogous
#031A36 #050336 #1E0336
triadic
#050336 #360503 #033605
tetradic
#050336 #36031A #343603 #03361E
square
#050336 #36031A #343603 #03361E
split-complementary
#050336 #361E03 #1A3603
monochromatic
#03021D #03021D #050336 #0A0670 #1009AA

Accessibility & contrast

On white

19.57
#050336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#050336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050336
19.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050336#FFFFFF#000000##FFFFFF
##0503361.0019.571.0719.57
#FFFFFF19.571.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000935
Tritanopia (blue-blind)
#00121C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #050336;
/* rgb */ color: rgb(5, 3, 54);
/* oklch */ color: oklch(16.4% 0.095 271.4);
Tailwind
colors: {
  custom: {
    50: '#4d476e',
    500: '#050336',
    950: '#000000',
  },
}
SCSS
$custom: #050336;
$custom-light: #4d476e;
$custom-dark: #000000;
JSON
{
  "hex": "#050336",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 242.353,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.16405,
    "c": 0.09536,
    "h": 271.4
  },
  "luminance": 0.00364
}

Semantic roles & 50–950 ramp

primary
#050336
secondary
#75791C
accent
#FF29F7
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #050336

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

Preview Lab → · Contrast checker → · Palette generator →

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