#081C40#081C40

#081C40 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.5% C 0.074 H 261.0°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#081C40
RGBrgb(8, 28, 64)
HSLhsl(219, 78%, 14%)
HSVhsv(219, 88%, 25%)
CMYKcmyk(87.5%, 56.2%, 0%, 74.9%)
CIE-LABlab(10.94, 7.63, -25.25)
CIE-LCHlch(10.94, 26.38, 286.82°)
OKLaboklab(23.47% -0.0115 -0.0726)
OKLCHoklch(23.47% 0.074 261)
XYZxyz(1.4405, 1.2521, 5.0153)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081C40 #402C08
analogous
#083840 #081C40 #100840
triadic
#081C40 #40081C #1C4008
tetradic
#081C40 #400838 #402C08 #084010
square
#081C40 #400838 #402C08 #084010
split-complementary
#081C40 #401008 #384008
monochromatic
#030C1B #030C1B #081C40 #0F3476 #164CAD

Accessibility & contrast

On white

16.79
#081C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#081C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081C40
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081C40#FFFFFF#000000##FFFFFF
##081C401.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072041
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#00252A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #081c40;
/* rgb */ color: rgb(8, 28, 64);
/* oklch */ color: oklch(23.5% 0.074 261.0);
Tailwind
colors: {
  custom: {
    50: '#525775',
    500: '#081c40',
    950: '#000000',
  },
}
SCSS
$custom: #081c40;
$custom-light: #525775;
$custom-dark: #000000;
JSON
{
  "hex": "#081c40",
  "rgb": {
    "r": 8,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 218.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23473,
    "c": 0.07352,
    "h": 261
  },
  "luminance": 0.01252
}

Semantic roles & 50–950 ramp

primary
#081C40
secondary
#7E5F25
accent
#AF34F4
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020308
muted
#78787B

Preview Lab

Preview with #081C40

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

Preview Lab → · Contrast checker → · Palette generator →

#081C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva