#181B4F#181B4F

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

Color values

HEX#181B4F
RGBrgb(24, 27, 79)
HSLhsl(237, 53%, 20%)
HSVhsv(237, 70%, 31%)
CMYKcmyk(69.6%, 65.8%, 0%, 69%)
CIE-LABlab(12.88, 17.59, -32.48)
CIE-LCHlch(12.88, 36.94, 298.43°)
OKLaboklab(25.6% 0.0083 -0.0935)
OKLCHoklch(25.6% 0.094 275.1)
XYZxyz(2.1794, 1.5424, 7.5785)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B4F #4F4C18
analogous
#18374F #181B4F #30184F
triadic
#181B4F #4F181B #1B4F18
tetradic
#181B4F #4F1837 #4F4C18 #184F30
square
#181B4F #4F1837 #4F4C18 #184F30
split-complementary
#181B4F #4F3018 #374F18
monochromatic
#070817 #0A0B20 #181B4F #262B7E #353BAD

Accessibility & contrast

On white

16.05
#181B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B4F
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B4F#FFFFFF#000000##FFFFFF
##181B4F1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#001F4E
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181b4f;
/* rgb */ color: rgb(24, 27, 79);
/* oklch */ color: oklch(25.6% 0.094 275.1);
Tailwind
colors: {
  custom: {
    50: '#5c5781',
    500: '#181b4f',
    950: '#000000',
  },
}
SCSS
$custom: #181b4f;
$custom-light: #5c5781;
$custom-dark: #000000;
JSON
{
  "hex": "#181b4f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 79
  },
  "hsl": {
    "h": 236.727,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25597,
    "c": 0.09387,
    "h": 275.1
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#181B4F
secondary
#86823D
accent
#D54BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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