#081138#081138

#081138 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.0% C 0.077 H 268.4°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#081138
RGBrgb(8, 17, 56)
HSLhsl(229, 75%, 13%)
HSVhsv(229, 86%, 22%)
CMYKcmyk(85.7%, 69.6%, 0%, 78%)
CIE-LABlab(6.67, 12.38, -26.45)
CIE-LCHlch(6.67, 29.20, 295.09°)
OKLaboklab(19.96% -0.0022 -0.0768)
OKLCHoklch(19.96% 0.077 268.4)
XYZxyz(1.0142, 0.7379, 3.8296)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081138 #382F08
analogous
#082938 #081138 #170838
triadic
#081138 #380811 #113808
tetradic
#081138 #380829 #382F08 #083817
square
#081138 #380829 #382F08 #083817
split-complementary
#081138 #381708 #293808
monochromatic
#04081B #04081B #081138 #10216E #1732A3

Accessibility & contrast

On white

18.30
#081138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#081138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #081138
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081138#FFFFFF#000000##FFFFFF
##0811381.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#001337
Tritanopia (blue-blind)
#001B22
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #081138;
/* rgb */ color: rgb(8, 17, 56);
/* oklch */ color: oklch(20.0% 0.077 268.4);
Tailwind
colors: {
  custom: {
    50: '#504e6f',
    500: '#081138',
    950: '#000000',
  },
}
SCSS
$custom: #081138;
$custom-light: #504e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#081138",
  "rgb": {
    "r": 8,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 228.75,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19957,
    "c": 0.0768,
    "h": 268.4
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#081138
secondary
#776725
accent
#CE36F2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #081138

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

Preview Lab → · Contrast checker → · Palette generator →

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