#181C47#181C47

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

Color values

HEX#181C47
RGBrgb(24, 28, 71)
HSLhsl(235, 49%, 19%)
HSVhsv(235, 66%, 28%)
CMYKcmyk(66.2%, 60.6%, 0%, 72.2%)
CIE-LABlab(12.48, 13.64, -27.61)
CIE-LCHlch(12.48, 30.80, 296.28°)
OKLaboklab(25.08% 0.0071 -0.0792)
OKLCHoklch(25.08% 0.079 275.1)
XYZxyz(1.9289, 1.4795, 6.1439)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C47 #474318
analogous
#183347 #181C47 #2B1847
triadic
#181C47 #47181C #1C4718
tetradic
#181C47 #471833 #474318 #18472B
square
#181C47 #471833 #474318 #18472B
split-complementary
#181C47 #472B18 #334718
monochromatic
#080917 #090A19 #181C47 #272E75 #3740A2

Accessibility & contrast

On white

16.20
#181C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C47
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C47#FFFFFF#000000##FFFFFF
##181C471.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022348
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181c47;
/* rgb */ color: rgb(24, 28, 71);
/* oklch */ color: oklch(25.1% 0.079 275.1);
Tailwind
colors: {
  custom: {
    50: '#5a577a',
    500: '#181c47',
    950: '#000000',
  },
}
SCSS
$custom: #181c47;
$custom-light: #5a577a;
$custom-dark: #000000;
JSON
{
  "hex": "#181c47",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 71
  },
  "hsl": {
    "h": 234.894,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25082,
    "c": 0.07948,
    "h": 275.1
  },
  "luminance": 0.0148
}

Semantic roles & 50–950 ramp

primary
#181C47
secondary
#7E783D
accent
#CD4FD9
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #181C47

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

Preview Lab → · Contrast checker → · Palette generator →

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