#08042F#08042F

#08042F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 16.0% C 0.082 H 277.1°. Best body text is #FFFFFF at 19.65:1 contrast (WCAG AA passes).

Color values

HEX#08042F
RGBrgb(8, 4, 47)
HSLhsl(246, 84%, 10%)
HSVhsv(246, 91%, 18%)
CMYKcmyk(83%, 91.5%, 0%, 81.6%)
CIE-LABlab(3.10, 13.51, -25.53)
CIE-LCHlch(3.10, 28.89, 297.89°)
OKLaboklab(15.96% 0.0102 -0.0817)
OKLCHoklch(15.96% 0.082 277.1)
XYZxyz(0.6565, 0.3436, 2.7205)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042F #2B2F04
analogous
#04162F #08042F #1D042F
triadic
#08042F #2F0804 #042F08
tetradic
#08042F #2F0416 #2B2F04 #042F1D
square
#08042F #2F0416 #2B2F04 #042F1D
split-complementary
#08042F #2F1D04 #162F04
monochromatic
#05021C #05021C #08042F #120967 #1B0EA0

Accessibility & contrast

On white

19.65
#08042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#08042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08042F
19.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042F#FFFFFF#000000##FFFFFF
##08042F1.0019.651.0719.65
#FFFFFF19.651.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #08042f;
/* rgb */ color: rgb(8, 4, 47);
/* oklch */ color: oklch(16.0% 0.082 277.1);
Tailwind
colors: {
  custom: {
    50: '#4c4868',
    500: '#08042f',
    950: '#000000',
  },
}
SCSS
$custom: #08042f;
$custom-light: #4c4868;
$custom-dark: #000000;
JSON
{
  "hex": "#08042f",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 245.581,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.15964,
    "c": 0.08238,
    "h": 277.1
  },
  "luminance": 0.00344
}

Semantic roles & 50–950 ramp

primary
#08042F
secondary
#6A721D
accent
#FB2DE7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #08042F

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

Preview Lab → · Contrast checker → · Palette generator →

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