#181A4B#181A4B

#181A4B is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.089 H 276.1°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#181A4B
RGBrgb(24, 26, 75)
HSLhsl(238, 52%, 19%)
HSVhsv(238, 68%, 29%)
CMYKcmyk(68%, 65.3%, 0%, 70.6%)
CIE-LABlab(12.23, 16.73, -30.79)
CIE-LCHlch(12.23, 35.04, 298.52°)
OKLaboklab(25.01% 0.0094 -0.0885)
OKLCHoklch(25.01% 0.089 276.1)
XYZxyz(2.0157, 1.4408, 6.8271)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A4B #4B4918
analogous
#18344B #181A4B #30184B
triadic
#181A4B #4B181A #1A4B18
tetradic
#181A4B #4B1834 #4B4918 #184B30
square
#181A4B #4B1834 #4B4918 #184B30
split-complementary
#181A4B #4B3018 #344B18
monochromatic
#070817 #090A1D #181A4B #272A79 #363AA8

Accessibility & contrast

On white

16.30
#181A4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A4B
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A4B#FFFFFF#000000##FFFFFF
##181A4B1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#00262F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181a4b;
/* rgb */ color: rgb(24, 26, 75);
/* oklch */ color: oklch(25.0% 0.089 276.1);
Tailwind
colors: {
  custom: {
    50: '#5c567e',
    500: '#181a4b',
    950: '#000000',
  },
}
SCSS
$custom: #181a4b;
$custom-light: #5c567e;
$custom-dark: #000000;
JSON
{
  "hex": "#181a4b",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 75
  },
  "hsl": {
    "h": 237.647,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25005,
    "c": 0.08902,
    "h": 276.1
  },
  "luminance": 0.01441
}

Semantic roles & 50–950 ramp

primary
#181A4B
secondary
#827F3D
accent
#D54DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181A4B

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

Preview Lab → · Contrast checker → · Palette generator →

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