#181E45#181E45

#181E45 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.073 H 273.5°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#181E45
RGBrgb(24, 30, 69)
HSLhsl(232, 48%, 18%)
HSVhsv(232, 65%, 27%)
CMYKcmyk(65.2%, 56.5%, 0%, 72.9%)
CIE-LABlab(12.94, 11.32, -25.48)
CIE-LCHlch(12.94, 27.88, 293.96°)
OKLaboklab(25.38% 0.0044 -0.0729)
OKLCHoklch(25.38% 0.073 273.5)
XYZxyz(1.9148, 1.5523, 5.8278)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E45 #453F18
analogous
#183445 #181E45 #281845
triadic
#181E45 #45181E #1E4518
tetradic
#181E45 #451834 #453F18 #184528
square
#181E45 #451834 #453F18 #184528
split-complementary
#181E45 #452818 #344518
monochromatic
#080A17 #080A18 #181E45 #283272 #3845A0

Accessibility & contrast

On white

16.03
#181E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E45
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E45#FFFFFF#000000##FFFFFF
##181E451.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092346
Deuteranopia (green-blind)
#032044
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181e45;
/* rgb */ color: rgb(24, 30, 69);
/* oklch */ color: oklch(25.4% 0.073 273.5);
Tailwind
colors: {
  custom: {
    50: '#5a5979',
    500: '#181e45',
    950: '#000000',
  },
}
SCSS
$custom: #181e45;
$custom-light: #5a5979;
$custom-dark: #000000;
JSON
{
  "hex": "#181e45",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 232,
    "s": 48.387,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25377,
    "c": 0.07301,
    "h": 273.5
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#181E45
secondary
#7C733D
accent
#C650D8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #181E45

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

Preview Lab → · Contrast checker → · Palette generator →

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