#181B4C#181B4C

#181B4C is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.089 H 275.4°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#181B4C
RGBrgb(24, 27, 76)
HSLhsl(237, 52%, 20%)
HSVhsv(237, 68%, 30%)
CMYKcmyk(68.4%, 64.5%, 0%, 70.2%)
CIE-LABlab(12.61, 16.39, -30.86)
CIE-LCHlch(12.61, 34.94, 297.97°)
OKLaboklab(25.31% 0.0083 -0.0887)
OKLCHoklch(25.31% 0.089 275.4)
XYZxyz(2.0727, 1.4997, 7.0163)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B4C #4C4918
analogous
#18354C #181B4C #2F184C
triadic
#181B4C #4C181B #1B4C18
tetradic
#181B4C #4C1835 #4C4918 #184C2F
square
#181B4C #4C1835 #4C4918 #184C2F
split-complementary
#181B4C #4C2F18 #354C18
monochromatic
#070817 #090A1D #181B4C #272C7B #353CA9

Accessibility & contrast

On white

16.15
#181B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B4C
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B4C#FFFFFF#000000##FFFFFF
##181B4C1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181b4c;
/* rgb */ color: rgb(24, 27, 76);
/* oklch */ color: oklch(25.3% 0.089 275.4);
Tailwind
colors: {
  custom: {
    50: '#5c577e',
    500: '#181b4c',
    950: '#000000',
  },
}
SCSS
$custom: #181b4c;
$custom-light: #5c577e;
$custom-dark: #000000;
JSON
{
  "hex": "#181b4c",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 236.538,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25314,
    "c": 0.08912,
    "h": 275.4
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#181B4C
secondary
#837F3D
accent
#D34CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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