#05082F#05082F

#05082F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.077 H 270.6°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#05082F
RGBrgb(5, 8, 47)
HSLhsl(236, 81%, 10%)
HSVhsv(236, 89%, 18%)
CMYKcmyk(89.4%, 83%, 0%, 81.6%)
CIE-LABlab(3.71, 11.12, -24.57)
CIE-LCHlch(3.71, 26.97, 294.36°)
OKLaboklab(16.65% 0.0008 -0.0768)
OKLCHoklch(16.65% 0.077 270.6)
XYZxyz(0.6623, 0.4111, 2.7332)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05082F #2F2C05
analogous
#051D2F #05082F #17052F
triadic
#05082F #2F0508 #082F05
tetradic
#05082F #2F051D #2F2C05 #052F17
square
#05082F #2F051D #2F2C05 #052F17
split-complementary
#05082F #2F1705 #1D2F05
monochromatic
#03051C #03051C #05082F #0B1166 #111B9E

Accessibility & contrast

On white

19.40
#05082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05082F
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05082F#FFFFFF#000000##FFFFFF
##05082F1.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #05082f;
/* rgb */ color: rgb(5, 8, 47);
/* oklch */ color: oklch(16.6% 0.077 270.6);
Tailwind
colors: {
  custom: {
    50: '#4b4a68',
    500: '#05082f',
    950: '#000000',
  },
}
SCSS
$custom: #05082f;
$custom-light: #4b4a68;
$custom-dark: #000000;
JSON
{
  "hex": "#05082f",
  "rgb": {
    "r": 5,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 235.714,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16649,
    "c": 0.07676,
    "h": 270.6
  },
  "luminance": 0.00411
}

Semantic roles & 50–950 ramp

primary
#05082F
secondary
#716B1F
accent
#E931F7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #05082F

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

Preview Lab → · Contrast checker → · Palette generator →

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