#08183F#08183F

#08183F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.078 H 264.1°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#08183F
RGBrgb(8, 24, 63)
HSLhsl(223, 77%, 14%)
HSVhsv(223, 87%, 25%)
CMYKcmyk(87.3%, 61.9%, 0%, 75.3%)
CIE-LABlab(9.51, 10.34, -26.85)
CIE-LCHlch(9.51, 28.77, 291.06°)
OKLaboklab(22.36% -0.008 -0.0774)
OKLCHoklch(22.36% 0.078 264.1)
XYZxyz(1.3237, 1.0636, 4.8372)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08183F #3F2F08
analogous
#08343F #08183F #14083F
triadic
#08183F #3F0818 #183F08
tetradic
#08183F #3F0834 #3F2F08 #083F14
square
#08183F #3F0834 #3F2F08 #083F14
split-complementary
#08183F #3F1408 #343F08
monochromatic
#030A1B #030A1B #08183F #0F2D75 #1641AC

Accessibility & contrast

On white

17.32
#08183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#08183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08183F
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08183F#FFFFFF#000000##FFFFFF
##08183F1.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#002228
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #08183f;
/* rgb */ color: rgb(8, 24, 63);
/* oklch */ color: oklch(22.4% 0.078 264.1);
Tailwind
colors: {
  custom: {
    50: '#525474',
    500: '#08183f',
    950: '#000000',
  },
}
SCSS
$custom: #08183f;
$custom-light: #525474;
$custom-dark: #000000;
JSON
{
  "hex": "#08183f",
  "rgb": {
    "r": 8,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 222.545,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22361,
    "c": 0.07781,
    "h": 264.1
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#08183F
secondary
#7E6425
accent
#BC34F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #08183F

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

Preview Lab → · Contrast checker → · Palette generator →

#08183F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva