#181955#181955

#181955 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.8% C 0.106 H 275.3°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#181955
RGBrgb(24, 25, 85)
HSLhsl(239, 56%, 21%)
HSVhsv(239, 72%, 33%)
CMYKcmyk(71.8%, 70.6%, 0%, 66.7%)
CIE-LABlab(12.89, 21.41, -36.55)
CIE-LCHlch(12.89, 42.35, 300.36°)
OKLaboklab(25.79% 0.0098 -0.1054)
OKLCHoklch(25.79% 0.106 275.3)
XYZxyz(2.3635, 1.5451, 8.7663)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181955 #555418
analogous
#183855 #181955 #361855
triadic
#181955 #551819 #195518
tetradic
#181955 #551838 #555418 #185536
square
#181955 #551838 #555418 #185536
split-complementary
#181955 #553618 #385518
monochromatic
#070718 #0B0B25 #181955 #252785 #3335B4

Accessibility & contrast

On white

16.04
#181955 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181955
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181955#FFFFFF#000000##FFFFFF
##1819551.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#001F54
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181955;
/* rgb */ color: rgb(24, 25, 85);
/* oklch */ color: oklch(25.8% 0.106 275.3);
Tailwind
colors: {
  custom: {
    50: '#5e5686',
    500: '#181955',
    950: '#000000',
  },
}
SCSS
$custom: #181955;
$custom-light: #5e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#181955",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 85
  },
  "hsl": {
    "h": 239.016,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25787,
    "c": 0.1059,
    "h": 275.3
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#181955
secondary
#8C8A3D
accent
#DD49DF
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181955

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

Preview Lab → · Contrast checker → · Palette generator →

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