#181D7B#181D7B

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

Color values

HEX#181D7B
RGBrgb(24, 29, 123)
HSLhsl(237, 67%, 29%)
HSVhsv(237, 80%, 48%)
CMYKcmyk(80.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(17.93, 33.15, -53.24)
CIE-LCHlch(17.93, 62.71, 301.91°)
OKLaboklab(30.64% 0.0019 -0.1542)
OKLCHoklch(30.64% 0.154 270.7)
XYZxyz(4.3900, 2.5025, 18.9867)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7B #7B7618
analogous
#184F7B #181D7B #45187B
triadic
#181D7B #7B181D #1D7B18
tetradic
#181D7B #7B184F #7B7618 #187B45
square
#181D7B #7B184F #7B7618 #187B45
split-complementary
#181D7B #7B4518 #4F7B18
monochromatic
#05061A #0E1148 #181D7B #2229AE #363ED8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181D7B#FFFFFF#000000##FFFFFF
##181D7B1.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)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181d7b;
/* rgb */ color: rgb(24, 29, 123);
/* oklch */ color: oklch(30.6% 0.154 270.7);
Tailwind
colors: {
  custom: {
    50: '#685aa2',
    500: '#181d7b',
    950: '#000000',
  },
}
SCSS
$custom: #181d7b;
$custom-light: #685aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7b",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 236.97,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30641,
    "c": 0.15417,
    "h": 270.7
  },
  "luminance": 0.02503
}

Semantic roles & 50–950 ramp

primary
#181D7B
secondary
#B0AA3F
accent
#E23EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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