#050339#050339

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

Color values

HEX#050339
RGBrgb(5, 3, 57)
HSLhsl(242, 90%, 12%)
HSVhsv(242, 95%, 22%)
CMYKcmyk(91.2%, 94.7%, 0%, 77.6%)
CIE-LABlab(3.55, 18.85, -32.24)
CIE-LCHlch(3.55, 37.34, 300.32°)
OKLaboklab(16.85% 0.0014 -0.0995)
OKLCHoklch(16.85% 0.099 270.8)
XYZxyz(0.8334, 0.3927, 3.9020)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050339 #373903
analogous
#031C39 #050339 #200339
triadic
#050339 #390503 #033905
tetradic
#050339 #39031C #373903 #033920
square
#050339 #39031C #373903 #033920
split-complementary
#050339 #392003 #1C3903
monochromatic
#03021D #03021D #050339 #0A0673 #0F09AD

Accessibility & contrast

On white

19.47
#050339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050339
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050339#FFFFFF#000000##FFFFFF
##0503391.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F3A
Deuteranopia (green-blind)
#000A38
Tritanopia (blue-blind)
#00141E
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #050339;
/* rgb */ color: rgb(5, 3, 57);
/* oklch */ color: oklch(16.9% 0.099 270.8);
Tailwind
colors: {
  custom: {
    50: '#4e4770',
    500: '#050339',
    950: '#000000',
  },
}
SCSS
$custom: #050339;
$custom-light: #4e4770;
$custom-dark: #000000;
JSON
{
  "hex": "#050339",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 242.222,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.16854,
    "c": 0.09948,
    "h": 270.8
  },
  "luminance": 0.00393
}

Semantic roles & 50–950 ramp

primary
#050339
secondary
#787C1C
accent
#FF29F7
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #050339

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

Preview Lab → · Contrast checker → · Palette generator →

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