#081238#081238

#081238 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.2% C 0.075 H 267.7°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#081238
RGBrgb(8, 18, 56)
HSLhsl(228, 75%, 13%)
HSVhsv(228, 86%, 22%)
CMYKcmyk(85.7%, 67.9%, 0%, 78%)
CIE-LABlab(6.95, 11.71, -25.98)
CIE-LCHlch(6.95, 28.50, 294.26°)
OKLaboklab(20.19% -0.0031 -0.0752)
OKLCHoklch(20.19% 0.075 267.7)
XYZxyz(1.0300, 0.7697, 3.8349)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#081238 #382E08
analogous
#082A38 #081238 #160838
triadic
#081238 #380812 #123808
tetradic
#081238 #38082A #382E08 #083816
square
#081238 #38082A #382E08 #083816
split-complementary
#081238 #381608 #2A3808
monochromatic
#04091B #04091B #081238 #10236E #1734A3

Accessibility & contrast

On white

18.20
#081238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #081238
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##081238#FFFFFF#000000##FFFFFF
##0812381.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #081238;
/* rgb */ color: rgb(8, 18, 56);
/* oklch */ color: oklch(20.2% 0.075 267.7);
Tailwind
colors: {
  custom: {
    50: '#504f6f',
    500: '#081238',
    950: '#000000',
  },
}
SCSS
$custom: #081238;
$custom-light: #504f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#081238",
  "rgb": {
    "r": 8,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 227.5,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20194,
    "c": 0.07529,
    "h": 267.7
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#081238
secondary
#776625
accent
#CB36F2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #081238

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

Preview Lab → · Contrast checker → · Palette generator →

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