#181D7E#181D7E

#181D7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.158 H 270.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#181D7E
RGBrgb(24, 29, 126)
HSLhsl(237, 68%, 29%)
HSVhsv(237, 81%, 49%)
CMYKcmyk(81%, 77%, 0%, 50.6%)
CIE-LABlab(18.27, 34.24, -54.58)
CIE-LCHlch(18.27, 64.43, 302.10°)
OKLaboklab(30.99% 0.0014 -0.1581)
OKLCHoklch(30.99% 0.158 270.5)
XYZxyz(4.5807, 2.5788, 19.9910)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7E #7E7918
analogous
#18507E #181D7E #46187E
triadic
#181D7E #7E181D #1D7E18
tetradic
#181D7E #7E1850 #7E7918 #187E46
square
#181D7E #7E1850 #7E7918 #187E46
split-complementary
#181D7E #7E4618 #507E18
monochromatic
#05061A #0E114B #181D7E #2229B1 #373FD9

Accessibility & contrast

On white

13.85
#181D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D7E
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D7E#FFFFFF#000000##FFFFFF
##181D7E1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181d7e;
/* rgb */ color: rgb(24, 29, 126);
/* oklch */ color: oklch(31.0% 0.158 270.5);
Tailwind
colors: {
  custom: {
    50: '#695aa4',
    500: '#181d7e',
    950: '#000000',
  },
}
SCSS
$custom: #181d7e;
$custom-light: #695aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7e",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 237.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30985,
    "c": 0.15809,
    "h": 270.5
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#181D7E
secondary
#B2AD3F
accent
#E23DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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