#181A50#181A50

#181A50 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.097 H 275.5°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#181A50
RGBrgb(24, 26, 80)
HSLhsl(238, 54%, 20%)
HSVhsv(238, 70%, 31%)
CMYKcmyk(70%, 67.5%, 0%, 68.6%)
CIE-LABlab(12.68, 18.72, -33.48)
CIE-LCHlch(12.68, 38.36, 299.21°)
OKLaboklab(25.49% 0.0093 -0.0964)
OKLCHoklch(25.49% 0.097 275.5)
XYZxyz(2.1936, 1.5120, 7.7641)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A50 #504E18
analogous
#183650 #181A50 #321850
triadic
#181A50 #50181A #1A5018
tetradic
#181A50 #501836 #504E18 #185032
square
#181A50 #501836 #504E18 #185032
split-complementary
#181A50 #503218 #365018
monochromatic
#070818 #0A0B21 #181A50 #26297F #3439AE

Accessibility & contrast

On white

16.12
#181A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A50
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A50#FFFFFF#000000##FFFFFF
##181A501.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#001E4F
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181a50;
/* rgb */ color: rgb(24, 26, 80);
/* oklch */ color: oklch(25.5% 0.097 275.5);
Tailwind
colors: {
  custom: {
    50: '#5d5682',
    500: '#181a50',
    950: '#000000',
  },
}
SCSS
$custom: #181a50;
$custom-light: #5d5682;
$custom-dark: #000000;
JSON
{
  "hex": "#181a50",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 80
  },
  "hsl": {
    "h": 237.857,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25485,
    "c": 0.09687,
    "h": 275.5
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#181A50
secondary
#87843D
accent
#D84BDD
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #181A50

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

Preview Lab → · Contrast checker → · Palette generator →

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