#050742#050742

#050742 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.0% C 0.106 H 268.8°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#050742
RGBrgb(5, 7, 66)
HSLhsl(238, 86%, 14%)
HSVhsv(238, 92%, 26%)
CMYKcmyk(92.4%, 89.4%, 0%, 74.1%)
CIE-LABlab(5.22, 22.39, -36.01)
CIE-LCHlch(5.22, 42.40, 301.87°)
OKLaboklab(18.98% -0.0022 -0.1063)
OKLCHoklch(18.98% 0.106 268.8)
XYZxyz(1.1216, 0.5774, 5.2055)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050742 #424005
analogous
#052642 #050742 #220542
triadic
#050742 #420507 #074205
tetradic
#050742 #420526 #424005 #054222
square
#050742 #420526 #424005 #054222
split-complementary
#050742 #422205 #264205
monochromatic
#02031C #02031C #050742 #090D7B #0E13B4

Accessibility & contrast

On white

18.82
#050742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#050742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050742
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050742#FFFFFF#000000##FFFFFF
##0507421.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001544
Deuteranopia (green-blind)
#000E41
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #050742;
/* rgb */ color: rgb(5, 7, 66);
/* oklch */ color: oklch(19.0% 0.106 268.8);
Tailwind
colors: {
  custom: {
    50: '#534877',
    500: '#050742',
    950: '#000000',
  },
}
SCSS
$custom: #050742;
$custom-light: #534877;
$custom-dark: #000000;
JSON
{
  "hex": "#050742",
  "rgb": {
    "r": 5,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 238.033,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.18975,
    "c": 0.10635,
    "h": 268.8
  },
  "luminance": 0.00578
}

Semantic roles & 50–950 ramp

primary
#050742
secondary
#827F20
accent
#F52CFC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #050742

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

Preview Lab → · Contrast checker → · Palette generator →

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