#05142A#05142A

#05142A is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.2% C 0.050 H 257.1°. Best body text is #FFFFFF at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#05142A
RGBrgb(5, 20, 42)
HSLhsl(216, 79%, 9%)
HSVhsv(216, 88%, 16%)
CMYKcmyk(88.1%, 52.4%, 0%, 83.5%)
CIE-LABlab(6.32, 2.68, -16.70)
CIE-LCHlch(6.32, 16.91, 279.12°)
OKLaboklab(19.21% -0.0111 -0.0484)
OKLCHoklch(19.21% 0.05 257.1)
XYZxyz(0.7305, 0.6997, 2.2866)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05142A #2A1B05
analogous
#05272A #05142A #09052A
triadic
#05142A #2A0514 #142A05
tetradic
#05142A #2A0527 #2A1B05 #052A09
square
#05142A #2A0527 #2A1B05 #052A09
split-complementary
#05142A #2A0905 #272A05
monochromatic
#030D1B #030D1B #05142A #0C2E61 #124897

Accessibility & contrast

On white

18.42
#05142A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#05142A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05142A
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05142A#FFFFFF#000000##FFFFFF
##05142A1.0018.421.1418.42
#FFFFFF18.421.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09162B
Deuteranopia (green-blind)
#04122A
Tritanopia (blue-blind)
#00191C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #05142a;
/* rgb */ color: rgb(5, 20, 42);
/* oklch */ color: oklch(19.2% 0.050 257.1);
Tailwind
colors: {
  custom: {
    50: '#4a5163',
    500: '#05142a',
    950: '#000000',
  },
}
SCSS
$custom: #05142a;
$custom-light: #4a5163;
$custom-dark: #000000;
JSON
{
  "hex": "#05142a",
  "rgb": {
    "r": 5,
    "g": 20,
    "b": 42
  },
  "hsl": {
    "h": 215.676,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.19209,
    "c": 0.04964,
    "h": 257.1
  },
  "luminance": 0.007
}

Semantic roles & 50–950 ramp

primary
#05142A
secondary
#6C4D1F
accent
#A633F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #05142A

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

Preview Lab → · Contrast checker → · Palette generator →

#05142A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva