#181A45#181A45

#181A45 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.079 H 276.8°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#181A45
RGBrgb(24, 26, 69)
HSLhsl(237, 48%, 18%)
HSVhsv(237, 65%, 27%)
CMYKcmyk(65.2%, 62.3%, 0%, 72.9%)
CIE-LABlab(11.71, 14.34, -27.47)
CIE-LCHlch(11.71, 30.99, 297.57°)
OKLaboklab(24.45% 0.0094 -0.0787)
OKLCHoklch(24.45% 0.079 276.8)
XYZxyz(1.8199, 1.3625, 5.7962)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A45 #454318
analogous
#183045 #181A45 #2C1845
triadic
#181A45 #45181A #1A4518
tetradic
#181A45 #451830 #454318 #18452C
square
#181A45 #451830 #454318 #18452C
split-complementary
#181A45 #452C18 #304518
monochromatic
#080917 #080918 #181A45 #282B72 #383CA0

Accessibility & contrast

On white

16.50
#181A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#181A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A45
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A45#FFFFFF#000000##FFFFFF
##181A451.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002146
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#00242C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181a45;
/* rgb */ color: rgb(24, 26, 69);
/* oklch */ color: oklch(24.5% 0.079 276.8);
Tailwind
colors: {
  custom: {
    50: '#5a5679',
    500: '#181a45',
    950: '#000000',
  },
}
SCSS
$custom: #181a45;
$custom-light: #5a5679;
$custom-dark: #000000;
JSON
{
  "hex": "#181a45",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 69
  },
  "hsl": {
    "h": 237.333,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24453,
    "c": 0.07931,
    "h": 276.8
  },
  "luminance": 0.01363
}

Semantic roles & 50–950 ramp

primary
#181A45
secondary
#7C793D
accent
#D250D8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #181A45

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

Preview Lab → · Contrast checker → · Palette generator →

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