#181B56#181B56

#181B56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.105 H 274.4°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#181B56
RGBrgb(24, 27, 86)
HSLhsl(237, 56%, 22%)
HSVhsv(237, 72%, 34%)
CMYKcmyk(72.1%, 68.6%, 0%, 66.3%)
CIE-LABlab(13.53, 20.37, -36.18)
CIE-LCHlch(13.53, 41.52, 299.38°)
OKLaboklab(26.28% 0.008 -0.1043)
OKLCHoklch(26.28% 0.105 274.4)
XYZxyz(2.4478, 1.6497, 8.9917)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B56 #565318
analogous
#183A56 #181B56 #341856
triadic
#181B56 #56181B #1B5618
tetradic
#181B56 #56183A #565318 #185634
square
#181B56 #56183A #565318 #185634
split-complementary
#181B56 #563418 #3A5618
monochromatic
#070818 #0B0C26 #181B56 #252A86 #3339B6

Accessibility & contrast

On white

15.79
#181B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B56
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B56#FFFFFF#000000##FFFFFF
##181B561.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002A35
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181b56;
/* rgb */ color: rgb(24, 27, 86);
/* oklch */ color: oklch(26.3% 0.105 274.4);
Tailwind
colors: {
  custom: {
    50: '#5e5786',
    500: '#181b56',
    950: '#000000',
  },
}
SCSS
$custom: #181b56;
$custom-light: #5e5786;
$custom-dark: #000000;
JSON
{
  "hex": "#181b56",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 237.097,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26283,
    "c": 0.10465,
    "h": 274.4
  },
  "luminance": 0.0165
}

Semantic roles & 50–950 ramp

primary
#181B56
secondary
#8D893D
accent
#D848E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B56

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

Preview Lab → · Contrast checker → · Palette generator →

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