#181B72#181B72

#181B72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.144 H 271.7°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#181B72
RGBrgb(24, 27, 114)
HSLhsl(238, 65%, 27%)
HSVhsv(238, 79%, 45%)
CMYKcmyk(78.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(16.47, 31.10, -49.87)
CIE-LCHlch(16.47, 58.77, 301.95°)
OKLaboklab(29.3% 0.0043 -0.1443)
OKLCHoklch(29.3% 0.144 271.7)
XYZxyz(3.8049, 2.1926, 16.1390)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B72 #726F18
analogous
#184872 #181B72 #421872
triadic
#181B72 #72181B #1B7218
tetradic
#181B72 #721848 #726F18 #187242
square
#181B72 #721848 #726F18 #187242
split-complementary
#181B72 #724218 #487218
monochromatic
#050619 #0D0F3F #181B72 #2327A5 #3136D4

Accessibility & contrast

On white

14.60
#181B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B72
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B72#FFFFFF#000000##FFFFFF
##181B721.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181b72;
/* rgb */ color: rgb(24, 27, 114);
/* oklch */ color: oklch(29.3% 0.144 271.7);
Tailwind
colors: {
  custom: {
    50: '#66589c',
    500: '#181b72',
    950: '#000000',
  },
}
SCSS
$custom: #181b72;
$custom-light: #66589c;
$custom-dark: #000000;
JSON
{
  "hex": "#181b72",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 238,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29296,
    "c": 0.14441,
    "h": 271.7
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#181B72
secondary
#A7A43E
accent
#E340E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B72

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

Preview Lab → · Contrast checker → · Palette generator →

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