#181C72#181C72

#181C72 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.143 H 271.5°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#181C72
RGBrgb(24, 28, 114)
HSLhsl(237, 65%, 27%)
HSVhsv(237, 79%, 45%)
CMYKcmyk(78.9%, 75.4%, 0%, 55.3%)
CIE-LABlab(16.70, 30.46, -49.49)
CIE-LCHlch(16.70, 58.11, 301.61°)
OKLaboklab(29.46% 0.0038 -0.1432)
OKLCHoklch(29.46% 0.143 271.5)
XYZxyz(3.8282, 2.2392, 16.1468)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C72 #726E18
analogous
#184972 #181C72 #411872
triadic
#181C72 #72181C #1C7218
tetradic
#181C72 #721849 #726E18 #187241
square
#181C72 #721849 #726E18 #187241
split-complementary
#181C72 #724118 #497218
monochromatic
#050619 #0D103F #181C72 #2328A5 #3138D4

Accessibility & contrast

On white

14.50
#181C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C72
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C72#FFFFFF#000000##FFFFFF
##181C721.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181c72;
/* rgb */ color: rgb(24, 28, 114);
/* oklch */ color: oklch(29.5% 0.143 271.5);
Tailwind
colors: {
  custom: {
    50: '#66599c',
    500: '#181c72',
    950: '#000000',
  },
}
SCSS
$custom: #181c72;
$custom-light: #66599c;
$custom-dark: #000000;
JSON
{
  "hex": "#181c72",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 237.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29459,
    "c": 0.1433,
    "h": 271.5
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#181C72
secondary
#A7A33E
accent
#E140E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181C72

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

Preview Lab → · Contrast checker → · Palette generator →

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