#05072F#05072F

#05072F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.4% C 0.078 H 271.1°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#05072F
RGBrgb(5, 7, 47)
HSLhsl(237, 81%, 10%)
HSVhsv(237, 89%, 18%)
CMYKcmyk(89.4%, 85.1%, 0%, 81.6%)
CIE-LABlab(3.52, 11.53, -24.88)
CIE-LCHlch(3.52, 27.42, 294.85°)
OKLaboklab(16.41% 0.0015 -0.0784)
OKLCHoklch(16.41% 0.078 271.1)
XYZxyz(0.6515, 0.3894, 2.7296)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05072F #2F2D05
analogous
#051C2F #05072F #18052F
triadic
#05072F #2F0507 #072F05
tetradic
#05072F #2F051C #2F2D05 #052F18
square
#05072F #2F051C #2F2D05 #052F18
split-complementary
#05072F #2F1805 #1C2F05
monochromatic
#03041C #03041C #05072F #0B0F66 #11179E

Accessibility & contrast

On white

19.48
#05072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#05072F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05072F
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05072F#FFFFFF#000000##FFFFFF
##05072F1.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#00121A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #05072f;
/* rgb */ color: rgb(5, 7, 47);
/* oklch */ color: oklch(16.4% 0.078 271.1);
Tailwind
colors: {
  custom: {
    50: '#4b4968',
    500: '#05072f',
    950: '#000000',
  },
}
SCSS
$custom: #05072f;
$custom-light: #4b4968;
$custom-dark: #000000;
JSON
{
  "hex": "#05072f",
  "rgb": {
    "r": 5,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 237.143,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16409,
    "c": 0.07837,
    "h": 271.1
  },
  "luminance": 0.00389
}

Semantic roles & 50–950 ramp

primary
#05072F
secondary
#716D1F
accent
#EE31F7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05072F

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

Preview Lab → · Contrast checker → · Palette generator →

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