#181A4C#181A4C

#181A4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.091 H 276.0°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#181A4C
RGBrgb(24, 26, 76)
HSLhsl(238, 52%, 20%)
HSVhsv(238, 68%, 30%)
CMYKcmyk(68.4%, 65.8%, 0%, 70.2%)
CIE-LABlab(12.32, 17.13, -31.33)
CIE-LCHlch(12.32, 35.71, 298.67°)
OKLaboklab(25.1% 0.0094 -0.0901)
OKLCHoklch(25.1% 0.091 276)
XYZxyz(2.0502, 1.4546, 7.0088)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A4C #4C4A18
analogous
#18344C #181A4C #30184C
triadic
#181A4C #4C181A #1A4C18
tetradic
#181A4C #4C1834 #4C4A18 #184C30
square
#181A4C #4C1834 #4C4A18 #184C30
split-complementary
#181A4C #4C3018 #344C18
monochromatic
#070817 #090A1D #181A4C #272A7B #353AA9

Accessibility & contrast

On white

16.27
#181A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A4C
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A4C#FFFFFF#000000##FFFFFF
##181A4C1.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#002630
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181a4c;
/* rgb */ color: rgb(24, 26, 76);
/* oklch */ color: oklch(25.1% 0.091 276.0);
Tailwind
colors: {
  custom: {
    50: '#5c567e',
    500: '#181a4c',
    950: '#000000',
  },
}
SCSS
$custom: #181a4c;
$custom-light: #5c567e;
$custom-dark: #000000;
JSON
{
  "hex": "#181a4c",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 76
  },
  "hsl": {
    "h": 237.692,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25099,
    "c": 0.09061,
    "h": 276
  },
  "luminance": 0.01455
}

Semantic roles & 50–950 ramp

primary
#181A4C
secondary
#83803D
accent
#D64CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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