#181A4D#181A4D

#181A4D is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.092 H 275.8°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#181A4D
RGBrgb(24, 26, 77)
HSLhsl(238, 52%, 20%)
HSVhsv(238, 69%, 30%)
CMYKcmyk(68.8%, 66.2%, 0%, 69.8%)
CIE-LABlab(12.41, 17.53, -31.87)
CIE-LCHlch(12.41, 36.37, 298.81°)
OKLaboklab(25.2% 0.0094 -0.0917)
OKLCHoklch(25.2% 0.092 275.8)
XYZxyz(2.0852, 1.4686, 7.1933)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A4D #4D4B18
analogous
#18354D #181A4D #31184D
triadic
#181A4D #4D181A #1A4D18
tetradic
#181A4D #4D1835 #4D4B18 #184D31
square
#181A4D #4D1835 #4D4B18 #184D31
split-complementary
#181A4D #4D3118 #354D18
monochromatic
#070817 #090A1E #181A4D #272A7C #353AAA

Accessibility & contrast

On white

16.23
#181A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181A4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A4D
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A4D#FFFFFF#000000##FFFFFF
##181A4D1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181a4d;
/* rgb */ color: rgb(24, 26, 77);
/* oklch */ color: oklch(25.2% 0.092 275.8);
Tailwind
colors: {
  custom: {
    50: '#5c567f',
    500: '#181a4d',
    950: '#000000',
  },
}
SCSS
$custom: #181a4d;
$custom-light: #5c567f;
$custom-dark: #000000;
JSON
{
  "hex": "#181a4d",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 237.736,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25195,
    "c": 0.09219,
    "h": 275.8
  },
  "luminance": 0.01469
}

Semantic roles & 50–950 ramp

primary
#181A4D
secondary
#84813D
accent
#D64CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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