#181E7D#181E7D

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

Color values

HEX#181E7D
RGBrgb(24, 30, 125)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(80.8%, 76%, 0%, 51%)
CIE-LABlab(18.38, 33.25, -53.77)
CIE-LCHlch(18.38, 63.22, 301.73°)
OKLaboklab(31.03% 0.0011 -0.1557)
OKLCHoklch(31.03% 0.156 270.4)
XYZxyz(4.5414, 2.6029, 19.6611)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7D #7D7718
analogous
#18517D #181E7D #45187D
triadic
#181E7D #7D181E #1E7D18
tetradic
#181E7D #7D1851 #7D7718 #187D45
square
#181E7D #7D1851 #7D7718 #187D45
split-complementary
#181E7D #7D4518 #517D18
monochromatic
#05061A #0E124A #181E7D #222AB0 #3740D9

Accessibility & contrast

On white

13.81
#181E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E7D
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7D#FFFFFF#000000##FFFFFF
##181E7D1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181e7d;
/* rgb */ color: rgb(24, 30, 125);
/* oklch */ color: oklch(31.0% 0.156 270.4);
Tailwind
colors: {
  custom: {
    50: '#695ba4',
    500: '#181e7d',
    950: '#000000',
  },
}
SCSS
$custom: #181e7d;
$custom-light: #695ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7d",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 236.436,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.15573,
    "h": 270.4
  },
  "luminance": 0.02603
}

Semantic roles & 50–950 ramp

primary
#181E7D
secondary
#B2AB3F
accent
#E03DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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