#181A7D#181A7D

#181A7D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.160 H 271.0°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#181A7D
RGBrgb(24, 26, 125)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(80.8%, 79.2%, 0%, 51%)
CIE-LABlab(17.52, 35.67, -55.19)
CIE-LCHlch(17.52, 65.71, 302.88°)
OKLaboklab(30.42% 0.0027 -0.1598)
OKLCHoklch(30.42% 0.16 271)
XYZxyz(4.4465, 2.4132, 19.6295)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7D #7D7B18
analogous
#184D7D #181A7D #49187D
triadic
#181A7D #7D181A #1A7D18
tetradic
#181A7D #7D184D #7D7B18 #187D49
square
#181A7D #7D184D #7D7B18 #187D49
split-complementary
#181A7D #7D4918 #4D7D18
monochromatic
#05051A #0E0F4A #181A7D #2225B0 #373AD9

Accessibility & contrast

On white

14.16
#181A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A7D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7D#FFFFFF#000000##FFFFFF
##181A7D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181a7d;
/* rgb */ color: rgb(24, 26, 125);
/* oklch */ color: oklch(30.4% 0.160 271.0);
Tailwind
colors: {
  custom: {
    50: '#6958a4',
    500: '#181a7d',
    950: '#000000',
  },
}
SCSS
$custom: #181a7d;
$custom-light: #6958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7d",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 238.812,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30419,
    "c": 0.15982,
    "h": 271
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#181A7D
secondary
#B2AF3F
accent
#E73DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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