#05072A#05072A

#05072A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.8% C 0.070 H 271.8°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#05072A
RGBrgb(5, 7, 42)
HSLhsl(237, 79%, 9%)
HSVhsv(237, 88%, 16%)
CMYKcmyk(88.1%, 83.3%, 0%, 83.5%)
CIE-LABlab(3.17, 9.11, -21.65)
CIE-LCHlch(3.17, 23.49, 292.82°)
OKLaboklab(15.78% 0.0023 -0.0703)
OKLCHoklch(15.78% 0.07 271.8)
XYZxyz(0.5563, 0.3513, 2.2285)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05072A #2A2805
analogous
#051A2A #05072A #16052A
triadic
#05072A #2A0507 #072A05
tetradic
#05072A #2A051A #2A2805 #052A16
square
#05072A #2A051A #2A2805 #052A16
split-complementary
#05072A #2A1605 #1A2A05
monochromatic
#03051B #03051B #05072A #0C1061 #121997

Accessibility & contrast

On white

19.62
#05072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#05072A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05072A
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05072A#FFFFFF#000000##FFFFFF
##05072A1.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2B
Deuteranopia (green-blind)
#000A29
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #05072a;
/* rgb */ color: rgb(5, 7, 42);
/* oklch */ color: oklch(15.8% 0.070 271.8);
Tailwind
colors: {
  custom: {
    50: '#494a64',
    500: '#05072a',
    950: '#000000',
  },
}
SCSS
$custom: #05072a;
$custom-light: #494a64;
$custom-dark: #000000;
JSON
{
  "hex": "#05072a",
  "rgb": {
    "r": 5,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 236.757,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15779,
    "c": 0.07032,
    "h": 271.8
  },
  "luminance": 0.00351
}

Semantic roles & 50–950 ramp

primary
#05072A
secondary
#6C681F
accent
#EB33F5
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #05072A

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

Preview Lab → · Contrast checker → · Palette generator →

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