#181754#181754

#181754 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.3% C 0.107 H 276.3°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#181754
RGBrgb(24, 23, 84)
HSLhsl(241, 57%, 21%)
HSVhsv(241, 73%, 33%)
CMYKcmyk(71.4%, 72.6%, 0%, 67.1%)
CIE-LABlab(12.27, 22.42, -36.89)
CIE-LCHlch(12.27, 43.17, 301.29°)
OKLaboklab(25.3% 0.0117 -0.1065)
OKLCHoklch(25.3% 0.107 276.3)
XYZxyz(2.2828, 1.4469, 8.5448)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181754 #535417
analogous
#173454 #181754 #361754
triadic
#181754 #541817 #175418
tetradic
#181754 #541734 #535417 #175436
square
#181754 #541734 #535417 #175436
split-complementary
#181754 #543617 #345417
monochromatic
#070718 #0A0A24 #181754 #262484 #3331B4

Accessibility & contrast

On white

16.29
#181754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181754 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181754
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181754#FFFFFF#000000##FFFFFF
##1817541.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#001D53
Tritanopia (blue-blind)
#002733
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181754;
/* rgb */ color: rgb(24, 23, 84);
/* oklch */ color: oklch(25.3% 0.107 276.3);
Tailwind
colors: {
  custom: {
    50: '#5e5485',
    500: '#181754',
    950: '#000000',
  },
}
SCSS
$custom: #181754;
$custom-light: #5e5485;
$custom-dark: #000000;
JSON
{
  "hex": "#181754",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 84
  },
  "hsl": {
    "h": 240.984,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25301,
    "c": 0.1071,
    "h": 276.3
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#181754
secondary
#8A8B3C
accent
#E048DE
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181754

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

Preview Lab → · Contrast checker → · Palette generator →

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