#081241#081241

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

Color values

HEX#081241
RGBrgb(8, 18, 65)
HSLhsl(229, 78%, 14%)
HSVhsv(229, 88%, 25%)
CMYKcmyk(87.7%, 72.3%, 0%, 74.5%)
CIE-LABlab(7.82, 15.98, -31.03)
CIE-LCHlch(7.82, 34.90, 297.25°)
OKLaboklab(21.16% -0.0031 -0.0898)
OKLCHoklch(21.16% 0.09 268)
XYZxyz(1.2702, 0.8657, 5.1002)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081241 #413708
analogous
#082F41 #081241 #1B0841
triadic
#081241 #410812 #124108
tetradic
#081241 #41082F #413708 #08411B
square
#081241 #41082F #413708 #08411B
split-complementary
#081241 #411B08 #2F4108
monochromatic
#03081B #03081B #081241 #0F2177 #1530AE

Accessibility & contrast

On white

17.90
#081241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #081241
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081241#FFFFFF#000000##FFFFFF
##0812411.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A43
Deuteranopia (green-blind)
#001540
Tritanopia (blue-blind)
#001E27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #081241;
/* rgb */ color: rgb(8, 18, 65);
/* oklch */ color: oklch(21.2% 0.090 268.0);
Tailwind
colors: {
  custom: {
    50: '#534f76',
    500: '#081241',
    950: '#000000',
  },
}
SCSS
$custom: #081241;
$custom-light: #534f76;
$custom-dark: #000000;
JSON
{
  "hex": "#081241",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 229.474,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21158,
    "c": 0.08982,
    "h": 268
  },
  "luminance": 0.00866
}

Semantic roles & 50–950 ramp

primary
#081241
secondary
#7F7025
accent
#D333F5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #081241

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

Preview Lab → · Contrast checker → · Palette generator →

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