#181D7F#181D7F

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

Color values

HEX#181D7F
RGBrgb(24, 29, 127)
HSLhsl(237, 68%, 30%)
HSVhsv(237, 81%, 50%)
CMYKcmyk(81.1%, 77.2%, 0%, 50.2%)
CIE-LABlab(18.39, 34.60, -55.03)
CIE-LCHlch(18.39, 65.00, 302.16°)
OKLaboklab(31.1% 0.0012 -0.1594)
OKLCHoklch(31.1% 0.159 270.4)
XYZxyz(4.6455, 2.6047, 20.3325)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7F #7F7A18
analogous
#18517F #181D7F #46187F
triadic
#181D7F #7F181D #1D7F18
tetradic
#181D7F #7F1851 #7F7A18 #187F46
square
#181D7F #7F1851 #7F7A18 #187F46
split-complementary
#181D7F #7F4618 #517F18
monochromatic
#05061A #0E114C #181D7F #2229B2 #3840D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181D7F#FFFFFF#000000##FFFFFF
##181D7F1.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)
#003282
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181d7f;
/* rgb */ color: rgb(24, 29, 127);
/* oklch */ color: oklch(31.1% 0.159 270.4);
Tailwind
colors: {
  custom: {
    50: '#695aa5',
    500: '#181d7f',
    950: '#000000',
  },
}
SCSS
$custom: #181d7f;
$custom-light: #695aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7f",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 237.087,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.311,
    "c": 0.15938,
    "h": 270.4
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

primary
#181D7F
secondary
#B3AE3F
accent
#E33DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #181D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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