#181A7C#181A7C

#181A7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.159 H 271.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#181A7C
RGBrgb(24, 26, 124)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(80.6%, 79%, 0%, 51.4%)
CIE-LABlab(17.40, 35.32, -54.75)
CIE-LCHlch(17.40, 65.15, 302.83°)
OKLaboklab(30.3% 0.0029 -0.1585)
OKLCHoklch(30.3% 0.159 271.1)
XYZxyz(4.3829, 2.3877, 19.2948)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7C #7C7A18
analogous
#184C7C #181A7C #48187C
triadic
#181A7C #7C181A #1A7C18
tetradic
#181A7C #7C184C #7C7A18 #187C48
square
#181A7C #7C184C #7C7A18 #187C48
split-complementary
#181A7C #7C4818 #4C7C18
monochromatic
#05051A #0E0F49 #181A7C #2225AF #3639D8

Accessibility & contrast

On white

14.21
#181A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A7C
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7C#FFFFFF#000000##FFFFFF
##181A7C1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181a7c;
/* rgb */ color: rgb(24, 26, 124);
/* oklch */ color: oklch(30.3% 0.159 271.1);
Tailwind
colors: {
  custom: {
    50: '#6958a3',
    500: '#181a7c',
    950: '#000000',
  },
}
SCSS
$custom: #181a7c;
$custom-light: #6958a3;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7c",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 238.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30301,
    "c": 0.15855,
    "h": 271.1
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#181A7C
secondary
#B1AE3F
accent
#E73DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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