#050628#050628

#050628 is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.3% C 0.069 H 273.0°. Best body text is #FFFFFF at 19.75:1 contrast (WCAG AA passes).

Color values

HEX#050628
RGBrgb(5, 6, 40)
HSLhsl(238, 78%, 9%)
HSVhsv(238, 88%, 16%)
CMYKcmyk(87.5%, 85%, 0%, 84.3%)
CIE-LABlab(2.85, 8.62, -20.63)
CIE-LCHlch(2.85, 22.36, 292.69°)
OKLaboklab(15.26% 0.0036 -0.0688)
OKLCHoklch(15.26% 0.069 273)
XYZxyz(0.5106, 0.3157, 2.0411)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050628 #282705
analogous
#051828 #050628 #160528
triadic
#050628 #280506 #062805
tetradic
#050628 #280518 #282705 #052816
square
#050628 #280518 #282705 #052816
split-complementary
#050628 #281605 #182805
monochromatic
#03041B #03041B #050628 #0C0E5E #131695

Accessibility & contrast

On white

19.75
#050628 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#050628 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050628
19.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050628#FFFFFF#000000##FFFFFF
##0506281.0019.751.0619.75
#FFFFFF19.751.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C29
Deuteranopia (green-blind)
#000927
Tritanopia (blue-blind)
#000F15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #050628;
/* rgb */ color: rgb(5, 6, 40);
/* oklch */ color: oklch(15.3% 0.069 273.0);
Tailwind
colors: {
  custom: {
    50: '#494962',
    500: '#050628',
    950: '#000000',
  },
}
SCSS
$custom: #050628;
$custom-light: #494962;
$custom-dark: #000000;
JSON
{
  "hex": "#050628",
  "rgb": {
    "r": 5,
    "g": 6,
    "b": 40
  },
  "hsl": {
    "h": 238.286,
    "s": 77.778,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15258,
    "c": 0.06888,
    "h": 273
  },
  "luminance": 0.00316
}

Semantic roles & 50–950 ramp

primary
#050628
secondary
#6A681F
accent
#EF34F4
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #050628

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

Preview Lab → · Contrast checker → · Palette generator →

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