#181B5A#181B5A

#181B5A is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.111 H 274.0°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#181B5A
RGBrgb(24, 27, 90)
HSLhsl(237, 58%, 22%)
HSVhsv(237, 73%, 35%)
CMYKcmyk(73.3%, 70%, 0%, 64.7%)
CIE-LABlab(13.92, 21.95, -38.24)
CIE-LCHlch(13.92, 44.09, 299.85°)
OKLaboklab(26.69% 0.0076 -0.1104)
OKLCHoklch(26.69% 0.111 274)
XYZxyz(2.6135, 1.7160, 9.8644)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B5A #5A5718
analogous
#183C5A #181B5A #36185A
triadic
#181B5A #5A181B #1B5A18
tetradic
#181B5A #5A183C #5A5718 #185A36
square
#181B5A #5A183C #5A5718 #185A36
split-complementary
#181B5A #5A3618 #3C5A18
monochromatic
#060718 #0B0D2A #181B5A #25298A #3238BB

Accessibility & contrast

On white

15.63
#181B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B5A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B5A#FFFFFF#000000##FFFFFF
##181B5A1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b5a;
/* rgb */ color: rgb(24, 27, 90);
/* oklch */ color: oklch(26.7% 0.111 274.0);
Tailwind
colors: {
  custom: {
    50: '#5f5789',
    500: '#181b5a',
    950: '#000000',
  },
}
SCSS
$custom: #181b5a;
$custom-light: #5f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#181b5a",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 237.273,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26689,
    "c": 0.11065,
    "h": 274
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#181B5A
secondary
#918D3D
accent
#DA47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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