#050421#050421

#050421 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.8% C 0.062 H 276.9°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#050421
RGBrgb(5, 4, 33)
HSLhsl(242, 78%, 7%)
HSVhsv(242, 88%, 13%)
CMYKcmyk(84.8%, 87.9%, 0%, 87.1%)
CIE-LABlab(2.07, 6.67, -16.39)
CIE-LCHlch(2.07, 17.70, 292.14°)
OKLaboklab(13.75% 0.0074 -0.0612)
OKLCHoklch(13.75% 0.062 276.9)
XYZxyz(0.3804, 0.2289, 1.4627)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050421 #202104
analogous
#041221 #050421 #140421
triadic
#050421 #210504 #042105
tetradic
#050421 #210412 #202104 #042114
square
#050421 #210412 #202104 #042114
split-complementary
#050421 #211404 #122104
monochromatic
#04031B #04031B #050421 #0D0B58 #16118E

Accessibility & contrast

On white

20.08
#050421 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#050421 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050421
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050421#FFFFFF#000000##FFFFFF
##0504211.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000922
Deuteranopia (green-blind)
#000620
Tritanopia (blue-blind)
#000B11
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #050421;
/* rgb */ color: rgb(5, 4, 33);
/* oklch */ color: oklch(13.8% 0.062 276.9);
Tailwind
colors: {
  custom: {
    50: '#48485c',
    500: '#050421',
    950: '#000000',
  },
}
SCSS
$custom: #050421;
$custom-light: #48485c;
$custom-dark: #000000;
JSON
{
  "hex": "#050421",
  "rgb": {
    "r": 5,
    "g": 4,
    "b": 33
  },
  "hsl": {
    "h": 242.069,
    "s": 78.378,
    "l": 7.255
  },
  "oklch": {
    "l": 0.1375,
    "c": 0.06162,
    "h": 276.9
  },
  "luminance": 0.00229
}

Semantic roles & 50–950 ramp

primary
#050421
secondary
#61641D
accent
#F533EE
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #050421

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

Preview Lab → · Contrast checker → · Palette generator →

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