#181856#181856

#181856 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.109 H 275.6°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#181856
RGBrgb(24, 24, 86)
HSLhsl(240, 56%, 22%)
HSVhsv(240, 72%, 34%)
CMYKcmyk(72.1%, 72.1%, 0%, 66.3%)
CIE-LABlab(12.73, 22.50, -37.49)
CIE-LCHlch(12.73, 43.72, 300.97°)
OKLaboklab(25.7% 0.0106 -0.1082)
OKLCHoklch(25.7% 0.109 275.6)
XYZxyz(2.3825, 1.5191, 8.9700)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181856 #565618
analogous
#183756 #181856 #371856
triadic
#181856 #561818 #185618
tetradic
#181856 #561837 #565618 #185637
square
#181856 #561837 #565618 #185637
split-complementary
#181856 #563718 #375618
monochromatic
#070718 #0B0B26 #181856 #252586 #3333B6

Accessibility & contrast

On white

16.11
#181856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181856
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181856#FFFFFF#000000##FFFFFF
##1818561.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#001E55
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181856;
/* rgb */ color: rgb(24, 24, 86);
/* oklch */ color: oklch(25.7% 0.109 275.6);
Tailwind
colors: {
  custom: {
    50: '#5f5586',
    500: '#181856',
    950: '#000000',
  },
}
SCSS
$custom: #181856;
$custom-light: #5f5586;
$custom-dark: #000000;
JSON
{
  "hex": "#181856",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 240,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25699,
    "c": 0.10872,
    "h": 275.6
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#181856
secondary
#8D8D3D
accent
#E048E0
background
#F5F4F8
surface
#EAE8EF
border
#C6C4CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181856

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

Preview Lab → · Contrast checker → · Palette generator →

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