#181A5B#181A5B

#181A5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.113 H 274.2°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#181A5B
RGBrgb(24, 26, 91)
HSLhsl(238, 58%, 23%)
HSVhsv(238, 74%, 36%)
CMYKcmyk(73.6%, 71.4%, 0%, 64.3%)
CIE-LABlab(13.76, 23.04, -39.18)
CIE-LCHlch(13.76, 45.45, 300.46°)
OKLaboklab(26.6% 0.0083 -0.1131)
OKLCHoklch(26.6% 0.113 274.2)
XYZxyz(2.6338, 1.6881, 10.0825)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A5B #5B5918
analogous
#183B5B #181A5B #37185B
triadic
#181A5B #5B181A #1A5B18
tetradic
#181A5B #5B183B #5B5918 #185B37
square
#181A5B #5B183B #5B5918 #185B37
split-complementary
#181A5B #5B3718 #3B5B18
monochromatic
#060718 #0B0C2B #181A5B #25288B #3236BC

Accessibility & contrast

On white

15.70
#181A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A5B
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A5B#FFFFFF#000000##FFFFFF
##181A5B1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#002B38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181a5b;
/* rgb */ color: rgb(24, 26, 91);
/* oklch */ color: oklch(26.6% 0.113 274.2);
Tailwind
colors: {
  custom: {
    50: '#60568a',
    500: '#181a5b',
    950: '#000000',
  },
}
SCSS
$custom: #181a5b;
$custom-light: #60568a;
$custom-dark: #000000;
JSON
{
  "hex": "#181a5b",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 91
  },
  "hsl": {
    "h": 238.209,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26601,
    "c": 0.11345,
    "h": 274.2
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#181A5B
secondary
#928F3D
accent
#DD46E1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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