#181C7D#181C7D

#181C7D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.158 H 270.7°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#181C7D
RGBrgb(24, 28, 125)
HSLhsl(238, 68%, 29%)
HSVhsv(238, 81%, 49%)
CMYKcmyk(80.8%, 77.6%, 0%, 51%)
CIE-LABlab(17.94, 34.48, -54.49)
CIE-LCHlch(17.94, 64.49, 302.33°)
OKLaboklab(30.72% 0.002 -0.1578)
OKLCHoklch(30.72% 0.158 270.7)
XYZxyz(4.4924, 2.5049, 19.6448)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C7D #7D7918
analogous
#184F7D #181C7D #47187D
triadic
#181C7D #7D181C #1C7D18
tetradic
#181C7D #7D184F #7D7918 #187D47
square
#181C7D #7D184F #7D7918 #187D47
split-complementary
#181C7D #7D4718 #4F7D18
monochromatic
#05061A #0E104A #181C7D #2228B0 #373DD9

Accessibility & contrast

On white

13.99
#181C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C7D
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C7D#FFFFFF#000000##FFFFFF
##181C7D1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181c7d;
/* rgb */ color: rgb(24, 28, 125);
/* oklch */ color: oklch(30.7% 0.158 270.7);
Tailwind
colors: {
  custom: {
    50: '#6959a4',
    500: '#181c7d',
    950: '#000000',
  },
}
SCSS
$custom: #181c7d;
$custom-light: #6959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#181c7d",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 237.624,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30716,
    "c": 0.15782,
    "h": 270.7
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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