#181C50#181C50

#181C50 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.094 H 274.4°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#181C50
RGBrgb(24, 28, 80)
HSLhsl(236, 54%, 20%)
HSVhsv(236, 70%, 31%)
CMYKcmyk(70%, 65%, 0%, 68.6%)
CIE-LABlab(13.25, 17.25, -32.55)
CIE-LCHlch(13.25, 36.84, 297.92°)
OKLaboklab(25.91% 0.0073 -0.0937)
OKLCHoklch(25.91% 0.094 274.4)
XYZxyz(2.2394, 1.6037, 7.7794)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C50 #504C18
analogous
#183850 #181C50 #301850
triadic
#181C50 #50181C #1C5018
tetradic
#181C50 #501838 #504C18 #185030
square
#181C50 #501838 #504C18 #185030
split-complementary
#181C50 #503018 #385018
monochromatic
#070818 #0A0C21 #181C50 #262C7F #343DAE

Accessibility & contrast

On white

15.90
#181C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C50
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C50#FFFFFF#000000##FFFFFF
##181C501.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181c50;
/* rgb */ color: rgb(24, 28, 80);
/* oklch */ color: oklch(25.9% 0.094 274.4);
Tailwind
colors: {
  custom: {
    50: '#5d5882',
    500: '#181c50',
    950: '#000000',
  },
}
SCSS
$custom: #181c50;
$custom-light: #5d5882;
$custom-dark: #000000;
JSON
{
  "hex": "#181c50",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 80
  },
  "hsl": {
    "h": 235.714,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25905,
    "c": 0.09397,
    "h": 274.4
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#181C50
secondary
#87823D
accent
#D34BDD
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #181C50

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

Preview Lab → · Contrast checker → · Palette generator →

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