#181D62#181D62

#181D62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.120 H 272.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#181D62
RGBrgb(24, 29, 98)
HSLhsl(236, 61%, 24%)
HSVhsv(236, 76%, 38%)
CMYKcmyk(75.5%, 70.4%, 0%, 61.6%)
CIE-LABlab(15.25, 23.68, -41.40)
CIE-LCHlch(15.25, 47.70, 299.77°)
OKLaboklab(27.9% 0.0053 -0.1196)
OKLCHoklch(27.9% 0.12 272.5)
XYZxyz(3.0199, 1.9545, 11.7710)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D62 #625D18
analogous
#184262 #181D62 #381862
triadic
#181D62 #62181D #1D6218
tetradic
#181D62 #621842 #625D18 #186238
square
#181D62 #621842 #625D18 #186238
split-complementary
#181D62 #623818 #426218
monochromatic
#060719 #0C0E31 #181D62 #242C93 #303AC4

Accessibility & contrast

On white

15.10
#181D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181D62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D62
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D62#FFFFFF#000000##FFFFFF
##181D621.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#002F3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181d62;
/* rgb */ color: rgb(24, 29, 98);
/* oklch */ color: oklch(27.9% 0.120 272.5);
Tailwind
colors: {
  custom: {
    50: '#61598f',
    500: '#181d62',
    950: '#000000',
  },
}
SCSS
$custom: #181d62;
$custom-light: #61598f;
$custom-dark: #000000;
JSON
{
  "hex": "#181d62",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 235.946,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27901,
    "c": 0.11976,
    "h": 272.5
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#181D62
secondary
#98923E
accent
#D944E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181D62

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

Preview Lab → · Contrast checker → · Palette generator →

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