#081240#081240

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

Color values

HEX#081240
RGBrgb(8, 18, 64)
HSLhsl(229, 78%, 14%)
HSVhsv(229, 88%, 25%)
CMYKcmyk(87.5%, 71.9%, 0%, 74.9%)
CIE-LABlab(7.72, 15.53, -30.48)
CIE-LCHlch(7.72, 34.21, 296.99°)
OKLaboklab(21.05% -0.0031 -0.0882)
OKLCHoklch(21.05% 0.088 268)
XYZxyz(1.2415, 0.8543, 4.9489)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081240 #403608
analogous
#082E40 #081240 #1A0840
triadic
#081240 #400812 #124008
tetradic
#081240 #40082E #403608 #08401A
square
#081240 #40082E #403608 #08401A
split-complementary
#081240 #401A08 #2E4008
monochromatic
#03081B #03081B #081240 #0F2176 #1631AD

Accessibility & contrast

On white

17.94
#081240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#081240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081240
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081240#FFFFFF#000000##FFFFFF
##0812401.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A41
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001E26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #081240;
/* rgb */ color: rgb(8, 18, 64);
/* oklch */ color: oklch(21.0% 0.088 268.0);
Tailwind
colors: {
  custom: {
    50: '#524f75',
    500: '#081240',
    950: '#000000',
  },
}
SCSS
$custom: #081240;
$custom-light: #524f75;
$custom-dark: #000000;
JSON
{
  "hex": "#081240",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 64
  },
  "hsl": {
    "h": 229.286,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21047,
    "c": 0.08824,
    "h": 268
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#081240
secondary
#7E6F25
accent
#D234F4
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081240

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

Preview Lab → · Contrast checker → · Palette generator →

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