#181A57#181A57

#181A57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.108 H 274.7°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#181A57
RGBrgb(24, 26, 87)
HSLhsl(238, 57%, 22%)
HSVhsv(238, 72%, 34%)
CMYKcmyk(72.4%, 70.1%, 0%, 65.9%)
CIE-LABlab(13.36, 21.48, -37.14)
CIE-LCHlch(13.36, 42.90, 300.04°)
OKLaboklab(26.19% 0.0088 -0.1072)
OKLCHoklch(26.19% 0.108 274.7)
XYZxyz(2.4658, 1.6209, 9.1979)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A57 #575518
analogous
#183A57 #181A57 #361857
triadic
#181A57 #57181A #1A5718
tetradic
#181A57 #57183A #575518 #185736
square
#181A57 #57183A #575518 #185736
split-complementary
#181A57 #573618 #3A5718
monochromatic
#070718 #0B0C27 #181A57 #252887 #3237B7

Accessibility & contrast

On white

15.86
#181A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181A57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A57
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A57#FFFFFF#000000##FFFFFF
##181A571.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181a57;
/* rgb */ color: rgb(24, 26, 87);
/* oklch */ color: oklch(26.2% 0.108 274.7);
Tailwind
colors: {
  custom: {
    50: '#5f5687',
    500: '#181a57',
    950: '#000000',
  },
}
SCSS
$custom: #181a57;
$custom-light: #5f5687;
$custom-dark: #000000;
JSON
{
  "hex": "#181a57",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 87
  },
  "hsl": {
    "h": 238.095,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26187,
    "c": 0.10753,
    "h": 274.7
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#181A57
secondary
#8E8B3D
accent
#DB48E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A57

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

Preview Lab → · Contrast checker → · Palette generator →

#181A57 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva