#181B60#181B60

#181B60 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.3% C 0.119 H 273.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#181B60
RGBrgb(24, 27, 96)
HSLhsl(238, 60%, 24%)
HSVhsv(238, 75%, 38%)
CMYKcmyk(75%, 71.9%, 0%, 62.4%)
CIE-LABlab(14.53, 24.29, -41.26)
CIE-LCHlch(14.53, 47.88, 300.49°)
OKLaboklab(27.32% 0.007 -0.1192)
OKLCHoklch(27.32% 0.119 273.4)
XYZxyz(2.8792, 1.8223, 11.2641)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B60 #605D18
analogous
#183F60 #181B60 #391860
triadic
#181B60 #60181B #1B6018
tetradic
#181B60 #60183F #605D18 #186039
square
#181B60 #60183F #605D18 #186039
split-complementary
#181B60 #603918 #3F6018
monochromatic
#060718 #0C0D2F #181B60 #242991 #3037C2

Accessibility & contrast

On white

15.39
#181B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B60
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B60#FFFFFF#000000##FFFFFF
##181B601.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181b60;
/* rgb */ color: rgb(24, 27, 96);
/* oklch */ color: oklch(27.3% 0.119 273.4);
Tailwind
colors: {
  custom: {
    50: '#61578e',
    500: '#181b60',
    950: '#000000',
  },
}
SCSS
$custom: #181b60;
$custom-light: #61578e;
$custom-dark: #000000;
JSON
{
  "hex": "#181b60",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 237.5,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27315,
    "c": 0.11942,
    "h": 273.4
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#181B60
secondary
#96933D
accent
#DD45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181B60

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

Preview Lab → · Contrast checker → · Palette generator →

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