#181B57#181B57

#181B57 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.106 H 274.3°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#181B57
RGBrgb(24, 27, 87)
HSLhsl(237, 57%, 22%)
HSVhsv(237, 72%, 34%)
CMYKcmyk(72.4%, 69%, 0%, 65.9%)
CIE-LABlab(13.63, 20.77, -36.70)
CIE-LCHlch(13.63, 42.17, 299.50°)
OKLaboklab(26.38% 0.0079 -0.1059)
OKLCHoklch(26.38% 0.106 274.3)
XYZxyz(2.4884, 1.6660, 9.2054)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B57 #575418
analogous
#183B57 #181B57 #351857
triadic
#181B57 #57181B #1B5718
tetradic
#181B57 #57183B #575418 #185735
square
#181B57 #57183B #575418 #185735
split-complementary
#181B57 #573518 #3B5718
monochromatic
#070718 #0B0C27 #181B57 #252A87 #3239B7

Accessibility & contrast

On white

15.75
#181B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B57
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B57#FFFFFF#000000##FFFFFF
##181B571.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181b57;
/* rgb */ color: rgb(24, 27, 87);
/* oklch */ color: oklch(26.4% 0.106 274.3);
Tailwind
colors: {
  custom: {
    50: '#5f5787',
    500: '#181b57',
    950: '#000000',
  },
}
SCSS
$custom: #181b57;
$custom-light: #5f5787;
$custom-dark: #000000;
JSON
{
  "hex": "#181b57",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 237.143,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26384,
    "c": 0.10616,
    "h": 274.3
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#181B57
secondary
#8E8A3D
accent
#D948E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B57

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

Preview Lab → · Contrast checker → · Palette generator →

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