#050340#050340

#050340 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.109 H 269.7°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#050340
RGBrgb(5, 3, 64)
HSLhsl(242, 91%, 13%)
HSVhsv(242, 95%, 25%)
CMYKcmyk(92.2%, 95.3%, 0%, 74.9%)
CIE-LABlab(4.22, 23.13, -36.21)
CIE-LCHlch(4.22, 42.96, 302.57°)
OKLaboklab(17.91% -0.0006 -0.1088)
OKLCHoklch(17.91% 0.109 269.7)
XYZxyz(1.0202, 0.4674, 4.8859)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050340 #3E4003
analogous
#031F40 #050340 #230340
triadic
#050340 #400503 #034005
tetradic
#050340 #40031F #3E4003 #034023
square
#050340 #40031F #3E4003 #034023
split-complementary
#050340 #402303 #1F4003
monochromatic
#02011D #02011D #050340 #0A067A #0E08B5

Accessibility & contrast

On white

19.20
#050340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050340
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050340#FFFFFF#000000##FFFFFF
##0503401.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001242
Deuteranopia (green-blind)
#000B3F
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #050340;
/* rgb */ color: rgb(5, 3, 64);
/* oklch */ color: oklch(17.9% 0.109 269.7);
Tailwind
colors: {
  custom: {
    50: '#524676',
    500: '#050340',
    950: '#000000',
  },
}
SCSS
$custom: #050340;
$custom-light: #524676;
$custom-dark: #000000;
JSON
{
  "hex": "#050340",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 241.967,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.17911,
    "c": 0.10885,
    "h": 269.7
  },
  "luminance": 0.00468
}

Semantic roles & 50–950 ramp

primary
#050340
secondary
#7F821D
accent
#FF29F8
background
#F5F3F7
surface
#E8E5ED
border
#C4C1C8
text
#030008
muted
#78777B

Preview Lab

Preview with #050340

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

Preview Lab → · Contrast checker → · Palette generator →

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