#181A4F#181A4F

#181A4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.095 H 275.6°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#181A4F
RGBrgb(24, 26, 79)
HSLhsl(238, 53%, 20%)
HSVhsv(238, 70%, 31%)
CMYKcmyk(69.6%, 67.1%, 0%, 69%)
CIE-LABlab(12.59, 18.32, -32.95)
CIE-LCHlch(12.59, 37.70, 299.08°)
OKLaboklab(25.39% 0.0093 -0.0949)
OKLCHoklch(25.39% 0.095 275.6)
XYZxyz(2.1569, 1.4973, 7.5710)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A4F #4F4D18
analogous
#18354F #181A4F #31184F
triadic
#181A4F #4F181A #1A4F18
tetradic
#181A4F #4F1835 #4F4D18 #184F31
square
#181A4F #4F1835 #4F4D18 #184F31
split-complementary
#181A4F #4F3118 #354F18
monochromatic
#070817 #0A0B20 #181A4F #26297E #3539AD

Accessibility & contrast

On white

16.16
#181A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A4F
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A4F#FFFFFF#000000##FFFFFF
##181A4F1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181a4f;
/* rgb */ color: rgb(24, 26, 79);
/* oklch */ color: oklch(25.4% 0.095 275.6);
Tailwind
colors: {
  custom: {
    50: '#5d5681',
    500: '#181a4f',
    950: '#000000',
  },
}
SCSS
$custom: #181a4f;
$custom-light: #5d5681;
$custom-dark: #000000;
JSON
{
  "hex": "#181a4f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 79
  },
  "hsl": {
    "h": 237.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25388,
    "c": 0.09533,
    "h": 275.6
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#181A4F
secondary
#86833D
accent
#D74BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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