#050E42#050E42

#050E42 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.098 H 267.2°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#050E42
RGBrgb(5, 14, 66)
HSLhsl(231, 86%, 14%)
HSVhsv(231, 92%, 26%)
CMYKcmyk(92.4%, 78.8%, 0%, 74.1%)
CIE-LABlab(6.68, 18.76, -33.61)
CIE-LCHlch(6.68, 38.49, 299.16°)
OKLaboklab(20.25% -0.0048 -0.0978)
OKLCHoklch(20.25% 0.098 267.2)
XYZxyz(1.2027, 0.7395, 5.2326)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050E42 #423905
analogous
#052D42 #050E42 #1B0542
triadic
#050E42 #42050E #0E4205
tetradic
#050E42 #42052D #423905 #05421B
square
#050E42 #42052D #423905 #05421B
split-complementary
#050E42 #421B05 #2D4205
monochromatic
#02061C #02061C #050E42 #091A7B #0E26B4

Accessibility & contrast

On white

18.29
#050E42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#050E42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #050E42
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##050E42#FFFFFF#000000##FFFFFF
##050E421.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001241
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #050e42;
/* rgb */ color: rgb(5, 14, 66);
/* oklch */ color: oklch(20.3% 0.098 267.2);
Tailwind
colors: {
  custom: {
    50: '#524c77',
    500: '#050e42',
    950: '#000000',
  },
}
SCSS
$custom: #050e42;
$custom-light: #524c77;
$custom-dark: #000000;
JSON
{
  "hex": "#050e42",
  "rgb": {
    "r": 5,
    "g": 14,
    "b": 66
  },
  "hsl": {
    "h": 231.148,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2025,
    "c": 0.09793,
    "h": 267.2
  },
  "luminance": 0.0074
}

Semantic roles & 50–950 ramp

primary
#050E42
secondary
#827420
accent
#DD2CFC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #050E42

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

Preview Lab → · Contrast checker → · Palette generator →

#050E42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva