#181C5E#181C5E

#181C5E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.3% C 0.115 H 273.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#181C5E
RGBrgb(24, 28, 94)
HSLhsl(237, 59%, 23%)
HSVhsv(237, 74%, 37%)
CMYKcmyk(74.5%, 70.2%, 0%, 63.1%)
CIE-LABlab(14.58, 22.81, -39.83)
CIE-LCHlch(14.58, 45.90, 299.80°)
OKLaboklab(27.3% 0.0064 -0.115)
OKLCHoklch(27.3% 0.115 273.2)
XYZxyz(2.8116, 1.8326, 10.7931)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C5E #5E5A18
analogous
#183F5E #181C5E #37185E
triadic
#181C5E #5E181C #1C5E18
tetradic
#181C5E #5E183F #5E5A18 #185E37
square
#181C5E #5E183F #5E5A18 #185E37
split-complementary
#181C5E #5E3718 #3F5E18
monochromatic
#060718 #0C0D2D #181C5E #242B8F #3139C0

Accessibility & contrast

On white

15.37
#181C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181C5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C5E
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C5E#FFFFFF#000000##FFFFFF
##181C5E1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181c5e;
/* rgb */ color: rgb(24, 28, 94);
/* oklch */ color: oklch(27.3% 0.115 273.2);
Tailwind
colors: {
  custom: {
    50: '#60588c',
    500: '#181c5e',
    950: '#000000',
  },
}
SCSS
$custom: #181c5e;
$custom-light: #60588c;
$custom-dark: #000000;
JSON
{
  "hex": "#181c5e",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 236.571,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27295,
    "c": 0.11523,
    "h": 273.2
  },
  "luminance": 0.01833
}

Semantic roles & 50–950 ramp

primary
#181C5E
secondary
#948F3D
accent
#DA45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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