#082042#082042

#082042 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.7% C 0.071 H 257.8°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#082042
RGBrgb(8, 32, 66)
HSLhsl(215, 78%, 15%)
HSVhsv(215, 88%, 26%)
CMYKcmyk(87.9%, 51.5%, 0%, 74.1%)
CIE-LABlab(12.47, 5.44, -24.19)
CIE-LCHlch(12.47, 24.80, 282.66°)
OKLaboklab(24.7% -0.0151 -0.0694)
OKLCHoklch(24.7% 0.071 257.8)
XYZxyz(1.5997, 1.4778, 5.3541)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#082042 #422A08
analogous
#083D42 #082042 #0D0842
triadic
#082042 #420820 #204208
tetradic
#082042 #42083D #422A08 #08420D
square
#082042 #42083D #422A08 #08420D
split-complementary
#082042 #420D08 #3D4208
monochromatic
#030D1B #030D1B #082042 #0F3A79 #1555AF

Accessibility & contrast

On white

16.21
#082042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#082042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #082042
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##082042#FFFFFF#000000##FFFFFF
##0820421.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2343
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #082042;
/* rgb */ color: rgb(8, 32, 66);
/* oklch */ color: oklch(24.7% 0.071 257.8);
Tailwind
colors: {
  custom: {
    50: '#525a76',
    500: '#082042',
    950: '#000000',
  },
}
SCSS
$custom: #082042;
$custom-light: #525a76;
$custom-dark: #000000;
JSON
{
  "hex": "#082042",
  "rgb": {
    "r": 8,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 215.172,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24699,
    "c": 0.07102,
    "h": 257.8
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#082042
secondary
#805B25
accent
#A533F5
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#030308
muted
#78787B

Preview Lab

Preview with #082042

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

Preview Lab → · Contrast checker → · Palette generator →

#082042 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva