#050334#050334

#050334 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 16.1% C 0.093 H 271.9°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#050334
RGBrgb(5, 3, 52)
HSLhsl(242, 89%, 11%)
HSVhsv(242, 94%, 20%)
CMYKcmyk(90.4%, 94.2%, 0%, 79.6%)
CIE-LABlab(3.12, 15.84, -29.25)
CIE-LCHlch(3.12, 33.26, 298.44°)
OKLaboklab(16.11% 0.003 -0.0925)
OKLCHoklch(16.11% 0.093 271.9)
XYZxyz(0.7148, 0.3452, 3.2771)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050334 #323403
analogous
#031934 #050334 #1D0334
triadic
#050334 #340503 #033405
tetradic
#050334 #340319 #323403 #03341D
square
#050334 #340319 #323403 #03341D
split-complementary
#050334 #341D03 #193403
monochromatic
#03021D #03021D #050334 #0B066E #100AA8

Accessibility & contrast

On white

19.64
#050334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #050334
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050334#FFFFFF#000000##FFFFFF
##0503341.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E35
Deuteranopia (green-blind)
#000933
Tritanopia (blue-blind)
#00111B
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #050334;
/* rgb */ color: rgb(5, 3, 52);
/* oklch */ color: oklch(16.1% 0.093 271.9);
Tailwind
colors: {
  custom: {
    50: '#4c476c',
    500: '#050334',
    950: '#000000',
  },
}
SCSS
$custom: #050334;
$custom-light: #4c476c;
$custom-dark: #000000;
JSON
{
  "hex": "#050334",
  "rgb": {
    "r": 5,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 242.449,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.16107,
    "c": 0.09258,
    "h": 271.9
  },
  "luminance": 0.00345
}

Semantic roles & 50–950 ramp

primary
#050334
secondary
#73771C
accent
#FF29F6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020007
muted
#78777A

Preview Lab

Preview with #050334

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

Preview Lab → · Contrast checker → · Palette generator →

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