#181858#181858

#181858 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.112 H 275.3°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#181858
RGBrgb(24, 24, 88)
HSLhsl(240, 57%, 22%)
HSVhsv(240, 73%, 35%)
CMYKcmyk(72.7%, 72.7%, 0%, 65.5%)
CIE-LABlab(12.93, 23.27, -38.51)
CIE-LCHlch(12.93, 44.99, 301.14°)
OKLaboklab(25.91% 0.0103 -0.1112)
OKLCHoklch(25.91% 0.112 275.3)
XYZxyz(2.4642, 1.5518, 9.4003)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181858 #585818
analogous
#183858 #181858 #381858
triadic
#181858 #581818 #185818
tetradic
#181858 #581838 #585818 #185838
square
#181858 #581838 #585818 #185838
split-complementary
#181858 #583818 #385818
monochromatic
#070718 #0B0B28 #181858 #252588 #3232B8

Accessibility & contrast

On white

16.03
#181858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181858
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181858#FFFFFF#000000##FFFFFF
##1818581.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181858;
/* rgb */ color: rgb(24, 24, 88);
/* oklch */ color: oklch(25.9% 0.112 275.3);
Tailwind
colors: {
  custom: {
    50: '#5f5588',
    500: '#181858',
    950: '#000000',
  },
}
SCSS
$custom: #181858;
$custom-light: #5f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#181858",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 240,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.11167,
    "h": 275.3
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#181858
secondary
#8F8F3D
accent
#E047E0
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181858

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

Preview Lab → · Contrast checker → · Palette generator →

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