#181B54#181B54

#181B54 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.102 H 274.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#181B54
RGBrgb(24, 27, 84)
HSLhsl(237, 56%, 21%)
HSVhsv(237, 71%, 33%)
CMYKcmyk(71.4%, 67.9%, 0%, 67.1%)
CIE-LABlab(13.34, 19.58, -35.14)
CIE-LCHlch(13.34, 40.22, 299.13°)
OKLaboklab(26.08% 0.0081 -0.1013)
OKLCHoklch(26.08% 0.102 274.6)
XYZxyz(2.3683, 1.6179, 8.5733)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B54 #545118
analogous
#183954 #181B54 #331854
triadic
#181B54 #54181B #1B5418
tetradic
#181B54 #541839 #545118 #185433
square
#181B54 #541839 #545118 #185433
split-complementary
#181B54 #543318 #395418
monochromatic
#070818 #0A0C24 #181B54 #262A84 #333AB3

Accessibility & contrast

On white

15.87
#181B54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B54
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B54#FFFFFF#000000##FFFFFF
##181B541.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181b54;
/* rgb */ color: rgb(24, 27, 84);
/* oklch */ color: oklch(26.1% 0.102 274.6);
Tailwind
colors: {
  custom: {
    50: '#5e5785',
    500: '#181b54',
    950: '#000000',
  },
}
SCSS
$custom: #181b54;
$custom-light: #5e5785;
$custom-dark: #000000;
JSON
{
  "hex": "#181b54",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 84
  },
  "hsl": {
    "h": 237,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26084,
    "c": 0.10161,
    "h": 274.6
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#181B54
secondary
#8B873D
accent
#D749DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B54

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

Preview Lab → · Contrast checker → · Palette generator →

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