#181C40#181C40

#181C40 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.068 H 275.5°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#181C40
RGBrgb(24, 28, 64)
HSLhsl(234, 45%, 17%)
HSVhsv(234, 63%, 25%)
CMYKcmyk(62.5%, 56.2%, 0%, 74.9%)
CIE-LABlab(11.92, 10.84, -23.61)
CIE-LCHlch(11.92, 25.98, 294.66°)
OKLaboklab(24.49% 0.0064 -0.0674)
OKLCHoklch(24.49% 0.068 275.5)
XYZxyz(1.7171, 1.3947, 5.0282)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C40 #403C18
analogous
#183040 #181C40 #281840
triadic
#181C40 #40181C #1C4018
tetradic
#181C40 #401830 #403C18 #184028
square
#181C40 #401830 #403C18 #184028
split-complementary
#181C40 #402818 #304018
monochromatic
#080A16 #080A16 #181C40 #292F6D #394399

Accessibility & contrast

On white

16.42
#181C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#181C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C40
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C40#FFFFFF#000000##FFFFFF
##181C401.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2141
Deuteranopia (green-blind)
#051E3F
Tritanopia (blue-blind)
#05242A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #181c40;
/* rgb */ color: rgb(24, 28, 64);
/* oklch */ color: oklch(24.5% 0.068 275.5);
Tailwind
colors: {
  custom: {
    50: '#595775',
    500: '#181c40',
    950: '#000000',
  },
}
SCSS
$custom: #181c40;
$custom-light: #595775;
$custom-dark: #000000;
JSON
{
  "hex": "#181c40",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 64
  },
  "hsl": {
    "h": 234,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24488,
    "c": 0.0677,
    "h": 275.5
  },
  "luminance": 0.01395
}

Semantic roles & 50–950 ramp

primary
#181C40
secondary
#77713D
accent
#C853D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181C40

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

Preview Lab → · Contrast checker → · Palette generator →

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