#081227#081227

#081227 is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.6% C 0.046 H 263.3°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#081227
RGBrgb(8, 18, 39)
HSLhsl(221, 66%, 9%)
HSVhsv(221, 79%, 15%)
CMYKcmyk(79.5%, 53.8%, 0%, 84.7%)
CIE-LABlab(5.70, 3.40, -15.40)
CIE-LCHlch(5.70, 15.77, 282.45°)
OKLaboklab(18.61% -0.0053 -0.0452)
OKLCHoklch(18.61% 0.046 263.3)
XYZxyz(0.6825, 0.6307, 2.0048)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081227 #271D08
analogous
#082227 #081227 #0E0827
triadic
#081227 #270812 #122708
tetradic
#081227 #270822 #271D08 #08270E
square
#081227 #270822 #271D08 #08270E
split-complementary
#081227 #270E08 #222708
monochromatic
#050C19 #050C19 #081227 #12295A #1D418D

Accessibility & contrast

On white

18.65
#081227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#081227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081227
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081227#FFFFFF#000000##FFFFFF
##0812271.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091428
Deuteranopia (green-blind)
#051127
Tritanopia (blue-blind)
#00171A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #081227;
/* rgb */ color: rgb(8, 18, 39);
/* oklch */ color: oklch(18.6% 0.046 263.3);
Tailwind
colors: {
  custom: {
    50: '#4b4f61',
    500: '#081227',
    950: '#000000',
  },
}
SCSS
$custom: #081227;
$custom-light: #4b4f61;
$custom-dark: #000000;
JSON
{
  "hex": "#081227",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 220.645,
    "s": 65.957,
    "l": 9.216
  },
  "oklch": {
    "l": 0.1861,
    "c": 0.04553,
    "h": 263.3
  },
  "luminance": 0.00631
}

Semantic roles & 50–950 ramp

primary
#081227
secondary
#655125
accent
#B23FE9
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010205
muted
#777879

Preview Lab

Preview with #081227

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

Preview Lab → · Contrast checker → · Palette generator →

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