#081242#081242

#081242 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.091 H 268.0°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#081242
RGBrgb(8, 18, 66)
HSLhsl(230, 78%, 15%)
HSVhsv(230, 88%, 26%)
CMYKcmyk(87.9%, 72.7%, 0%, 74.1%)
CIE-LABlab(7.93, 16.43, -31.56)
CIE-LCHlch(7.93, 35.58, 297.50°)
OKLaboklab(21.27% -0.0032 -0.0913)
OKLCHoklch(21.27% 0.091 268)
XYZxyz(1.2995, 0.8774, 5.2541)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081242 #423808
analogous
#082F42 #081242 #1B0842
triadic
#081242 #420812 #124208
tetradic
#081242 #42082F #423808 #08421B
square
#081242 #42082F #423808 #08421B
split-complementary
#081242 #421B08 #2F4208
monochromatic
#03071B #03071B #081242 #0F2179 #1530AF

Accessibility & contrast

On white

17.86
#081242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#081242 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081242
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081242#FFFFFF#000000##FFFFFF
##0812421.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001F27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #081242;
/* rgb */ color: rgb(8, 18, 66);
/* oklch */ color: oklch(21.3% 0.091 268.0);
Tailwind
colors: {
  custom: {
    50: '#534f77',
    500: '#081242',
    950: '#000000',
  },
}
SCSS
$custom: #081242;
$custom-light: #534f77;
$custom-dark: #000000;
JSON
{
  "hex": "#081242",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 229.655,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21269,
    "c": 0.09138,
    "h": 268
  },
  "luminance": 0.00878
}

Semantic roles & 50–950 ramp

primary
#081242
secondary
#807125
accent
#D333F5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #081242

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

Preview Lab → · Contrast checker → · Palette generator →

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