#081246#081246

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

Color values

HEX#081246
RGBrgb(8, 18, 70)
HSLhsl(230, 79%, 15%)
HSVhsv(230, 89%, 27%)
CMYKcmyk(88.6%, 74.3%, 0%, 72.5%)
CIE-LABlab(8.36, 18.18, -33.67)
CIE-LCHlch(8.36, 38.26, 298.38°)
OKLaboklab(21.72% -0.0034 -0.0975)
OKLCHoklch(21.72% 0.098 268)
XYZxyz(1.4216, 0.9263, 5.8970)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081246 #463C08
analogous
#083146 #081246 #1D0846
triadic
#081246 #460812 #124608
tetradic
#081246 #460831 #463C08 #08461D
square
#081246 #460831 #463C08 #08461D
split-complementary
#081246 #461D08 #314608
monochromatic
#03071B #03071B #081246 #0E207D #152EB4

Accessibility & contrast

On white

17.72
#081246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#081246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081246
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081246#FFFFFF#000000##FFFFFF
##0812461.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B48
Deuteranopia (green-blind)
#001545
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #081246;
/* rgb */ color: rgb(8, 18, 70);
/* oklch */ color: oklch(21.7% 0.098 268.0);
Tailwind
colors: {
  custom: {
    50: '#544f7a',
    500: '#081246',
    950: '#000000',
  },
}
SCSS
$custom: #081246;
$custom-light: #544f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#081246",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 230.323,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.21722,
    "c": 0.09754,
    "h": 268
  },
  "luminance": 0.00926
}

Semantic roles & 50–950 ramp

primary
#081246
secondary
#847526
accent
#D632F6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #081246

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

Preview Lab → · Contrast checker → · Palette generator →

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