#181B59#181B59

#181B59 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.6% C 0.109 H 274.1°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#181B59
RGBrgb(24, 27, 89)
HSLhsl(237, 58%, 22%)
HSVhsv(237, 73%, 35%)
CMYKcmyk(73%, 69.7%, 0%, 65.1%)
CIE-LABlab(13.82, 21.55, -37.73)
CIE-LCHlch(13.82, 43.45, 299.74°)
OKLaboklab(26.59% 0.0077 -0.1089)
OKLCHoklch(26.59% 0.109 274.1)
XYZxyz(2.5712, 1.6991, 9.6417)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B59 #595618
analogous
#183C59 #181B59 #361859
triadic
#181B59 #59181B #1B5918
tetradic
#181B59 #59183C #595618 #185936
square
#181B59 #59183C #595618 #185936
split-complementary
#181B59 #593618 #3C5918
monochromatic
#060718 #0B0C29 #181B59 #252A89 #3238B9

Accessibility & contrast

On white

15.67
#181B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B59
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B59#FFFFFF#000000##FFFFFF
##181B591.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002058
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181b59;
/* rgb */ color: rgb(24, 27, 89);
/* oklch */ color: oklch(26.6% 0.109 274.1);
Tailwind
colors: {
  custom: {
    50: '#5f5789',
    500: '#181b59',
    950: '#000000',
  },
}
SCSS
$custom: #181b59;
$custom-light: #5f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#181b59",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 237.231,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26587,
    "c": 0.10916,
    "h": 274.1
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#181B59
secondary
#908C3D
accent
#DA47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B59

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

Preview Lab → · Contrast checker → · Palette generator →

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