#181A5C#181A5C

#181A5C is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.115 H 274.1°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#181A5C
RGBrgb(24, 26, 92)
HSLhsl(238, 59%, 23%)
HSVhsv(238, 74%, 36%)
CMYKcmyk(73.9%, 71.7%, 0%, 63.9%)
CIE-LABlab(13.86, 23.43, -39.68)
CIE-LCHlch(13.86, 46.08, 300.56°)
OKLaboklab(26.71% 0.0082 -0.1146)
OKLCHoklch(26.71% 0.115 274.1)
XYZxyz(2.6772, 1.7054, 10.3112)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A5C #5C5A18
analogous
#183C5C #181A5C #38185C
triadic
#181A5C #5C181A #1A5C18
tetradic
#181A5C #5C183C #5C5A18 #185C38
square
#181A5C #5C183C #5C5A18 #185C38
split-complementary
#181A5C #5C3818 #3C5C18
monochromatic
#060718 #0B0C2B #181A5C #25288D #3135BD

Accessibility & contrast

On white

15.66
#181A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A5C
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A5C#FFFFFF#000000##FFFFFF
##181A5C1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181a5c;
/* rgb */ color: rgb(24, 26, 92);
/* oklch */ color: oklch(26.7% 0.115 274.1);
Tailwind
colors: {
  custom: {
    50: '#60568b',
    500: '#181a5c',
    950: '#000000',
  },
}
SCSS
$custom: #181a5c;
$custom-light: #60568b;
$custom-dark: #000000;
JSON
{
  "hex": "#181a5c",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 92
  },
  "hsl": {
    "h": 238.235,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26706,
    "c": 0.11491,
    "h": 274.1
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#181A5C
secondary
#93903D
accent
#DD46E2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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