#181A7A#181A7A

#181A7A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.156 H 271.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#181A7A
RGBrgb(24, 26, 122)
HSLhsl(239, 67%, 29%)
HSVhsv(239, 80%, 48%)
CMYKcmyk(80.3%, 78.7%, 0%, 52.2%)
CIE-LABlab(17.17, 34.61, -53.86)
CIE-LCHlch(17.17, 64.02, 302.73°)
OKLaboklab(30.07% 0.0033 -0.1559)
OKLCHoklch(30.07% 0.156 271.2)
XYZxyz(4.2577, 2.3377, 18.6354)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7A #7A7818
analogous
#184B7A #181A7A #47187A
triadic
#181A7A #7A181A #1A7A18
tetradic
#181A7A #7A184B #7A7818 #187A47
square
#181A7A #7A184B #7A7818 #187A47
split-complementary
#181A7A #7A4718 #4B7A18
monochromatic
#05051A #0E0F47 #181A7A #2225AD #3538D7

Accessibility & contrast

On white

14.31
#181A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A7A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7A#FFFFFF#000000##FFFFFF
##181A7A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002578
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181a7a;
/* rgb */ color: rgb(24, 26, 122);
/* oklch */ color: oklch(30.1% 0.156 271.2);
Tailwind
colors: {
  custom: {
    50: '#6858a2',
    500: '#181a7a',
    950: '#000000',
  },
}
SCSS
$custom: #181a7a;
$custom-light: #6858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7a",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 238.776,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30066,
    "c": 0.15598,
    "h": 271.2
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

primary
#181A7A
secondary
#AFAC3F
accent
#E73EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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