#181B73#181B73

#181B73 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.146 H 271.6°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#181B73
RGBrgb(24, 27, 115)
HSLhsl(238, 65%, 27%)
HSVhsv(238, 79%, 45%)
CMYKcmyk(79.1%, 76.5%, 0%, 54.9%)
CIE-LABlab(16.58, 31.47, -50.33)
CIE-LCHlch(16.58, 59.36, 302.02°)
OKLaboklab(29.41% 0.0042 -0.1457)
OKLCHoklch(29.41% 0.146 271.6)
XYZxyz(3.8621, 2.2154, 16.4404)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B73 #737018
analogous
#184973 #181B73 #431873
triadic
#181B73 #73181B #1B7318
tetradic
#181B73 #731849 #737018 #187343
square
#181B73 #731849 #737018 #187343
split-complementary
#181B73 #734318 #497318
monochromatic
#050619 #0D0F40 #181B73 #2327A6 #3137D4

Accessibility & contrast

On white

14.55
#181B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B73
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B73#FFFFFF#000000##FFFFFF
##181B731.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b73;
/* rgb */ color: rgb(24, 27, 115);
/* oklch */ color: oklch(29.4% 0.146 271.6);
Tailwind
colors: {
  custom: {
    50: '#66589c',
    500: '#181b73',
    950: '#000000',
  },
}
SCSS
$custom: #181b73;
$custom-light: #66589c;
$custom-dark: #000000;
JSON
{
  "hex": "#181b73",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 238.022,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.2941,
    "c": 0.14575,
    "h": 271.6
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#181B73
secondary
#A8A53F
accent
#E33FE8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B73

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

Preview Lab → · Contrast checker → · Palette generator →

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