#181E5C#181E5C

#181E5C is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.110 H 272.6°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#181E5C
RGBrgb(24, 30, 92)
HSLhsl(235, 59%, 23%)
HSVhsv(235, 74%, 36%)
CMYKcmyk(73.9%, 67.4%, 0%, 63.9%)
CIE-LABlab(14.93, 20.60, -37.93)
CIE-LCHlch(14.93, 43.16, 298.51°)
OKLaboklab(27.49% 0.005 -0.1095)
OKLCHoklch(27.49% 0.11 272.6)
XYZxyz(2.7721, 1.8952, 10.3429)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E5C #5C5618
analogous
#18405C #181E5C #34185C
triadic
#181E5C #5C181E #1E5C18
tetradic
#181E5C #5C1840 #5C5618 #185C34
square
#181E5C #5C1840 #5C5618 #185C34
split-complementary
#181E5C #5C3418 #405C18
monochromatic
#060818 #0B0E2B #181E5C #252E8D #313EBD

Accessibility & contrast

On white

15.23
#181E5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181E5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E5C
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E5C#FFFFFF#000000##FFFFFF
##181E5C1.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181e5c;
/* rgb */ color: rgb(24, 30, 92);
/* oklch */ color: oklch(27.5% 0.110 272.6);
Tailwind
colors: {
  custom: {
    50: '#60598b',
    500: '#181e5c',
    950: '#000000',
  },
}
SCSS
$custom: #181e5c;
$custom-light: #60598b;
$custom-dark: #000000;
JSON
{
  "hex": "#181e5c",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 92
  },
  "hsl": {
    "h": 234.706,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27487,
    "c": 0.10958,
    "h": 272.6
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#181E5C
secondary
#938B3D
accent
#D446E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181E5C

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

Preview Lab → · Contrast checker → · Palette generator →

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