#181657#181657

#181657 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.113 H 276.1°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#181657
RGBrgb(24, 22, 87)
HSLhsl(242, 60%, 21%)
HSVhsv(242, 75%, 34%)
CMYKcmyk(72.4%, 74.7%, 0%, 65.9%)
CIE-LABlab(12.32, 24.26, -38.83)
CIE-LCHlch(12.32, 45.79, 301.99°)
OKLaboklab(25.44% 0.012 -0.1121)
OKLCHoklch(25.44% 0.113 276.1)
XYZxyz(2.3833, 1.4559, 9.1704)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181657 #555716
analogous
#163557 #181657 #391657
triadic
#181657 #571816 #165718
tetradic
#181657 #571635 #555716 #165739
square
#181657 #571635 #555716 #165739
split-complementary
#181657 #573916 #355716
monochromatic
#070618 #0B0A26 #181657 #252288 #332FB9

Accessibility & contrast

On white

16.26
#181657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181657
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181657#FFFFFF#000000##FFFFFF
##1816571.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181657;
/* rgb */ color: rgb(24, 22, 87);
/* oklch */ color: oklch(25.4% 0.113 276.1);
Tailwind
colors: {
  custom: {
    50: '#5f5387',
    500: '#181657',
    950: '#000000',
  },
}
SCSS
$custom: #181657;
$custom-light: #5f5387;
$custom-dark: #000000;
JSON
{
  "hex": "#181657",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 241.846,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.25439,
    "c": 0.11278,
    "h": 276.1
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#181657
secondary
#8C8E3A
accent
#E345DE
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181657

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

Preview Lab → · Contrast checker → · Palette generator →

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