#181D7C#181D7C

#181D7C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.155 H 270.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#181D7C
RGBrgb(24, 29, 124)
HSLhsl(237, 68%, 29%)
HSVhsv(237, 81%, 49%)
CMYKcmyk(80.6%, 76.6%, 0%, 51.4%)
CIE-LABlab(18.04, 33.51, -53.69)
CIE-LCHlch(18.04, 63.29, 301.97°)
OKLaboklab(30.76% 0.0017 -0.1555)
OKLCHoklch(30.76% 0.155 270.6)
XYZxyz(4.4529, 2.5277, 19.3181)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D7C #7C7718
analogous
#184F7C #181D7C #45187C
triadic
#181D7C #7C181D #1D7C18
tetradic
#181D7C #7C184F #7C7718 #187C45
square
#181D7C #7C184F #7C7718 #187C45
split-complementary
#181D7C #7C4518 #4F7C18
monochromatic
#05061A #0E1149 #181D7C #2229AF #363ED8

Accessibility & contrast

On white

13.95
#181D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D7C
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D7C#FFFFFF#000000##FFFFFF
##181D7C1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d7c;
/* rgb */ color: rgb(24, 29, 124);
/* oklch */ color: oklch(30.8% 0.155 270.6);
Tailwind
colors: {
  custom: {
    50: '#685aa3',
    500: '#181d7c',
    950: '#000000',
  },
}
SCSS
$custom: #181d7c;
$custom-light: #685aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#181d7c",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 237,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30755,
    "c": 0.15548,
    "h": 270.6
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#181D7C
secondary
#B1AB3F
accent
#E23DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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