#181A56#181A56

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

Color values

HEX#181A56
RGBrgb(24, 26, 86)
HSLhsl(238, 56%, 22%)
HSVhsv(238, 72%, 34%)
CMYKcmyk(72.1%, 69.8%, 0%, 66.3%)
CIE-LABlab(13.26, 21.09, -36.63)
CIE-LCHlch(13.26, 42.26, 299.93°)
OKLaboklab(26.09% 0.0088 -0.1057)
OKLCHoklch(26.09% 0.106 274.8)
XYZxyz(2.4252, 1.6046, 8.9842)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A56 #565418
analogous
#183956 #181A56 #351856
triadic
#181A56 #56181A #1A5618
tetradic
#181A56 #561839 #565418 #185635
square
#181A56 #561839 #565418 #185635
split-complementary
#181A56 #563518 #395618
monochromatic
#070718 #0B0C26 #181A56 #252886 #3337B6

Accessibility & contrast

On white

15.90
#181A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A56
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A56#FFFFFF#000000##FFFFFF
##181A561.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181a56;
/* rgb */ color: rgb(24, 26, 86);
/* oklch */ color: oklch(26.1% 0.106 274.8);
Tailwind
colors: {
  custom: {
    50: '#5e5686',
    500: '#181a56',
    950: '#000000',
  },
}
SCSS
$custom: #181a56;
$custom-light: #5e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#181a56",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 238.065,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26085,
    "c": 0.10603,
    "h": 274.8
  },
  "luminance": 0.01605
}

Semantic roles & 50–950 ramp

primary
#181A56
secondary
#8D8A3D
accent
#DB48E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A56

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

Preview Lab → · Contrast checker → · Palette generator →

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