#181C71#181C71

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

Color values

HEX#181C71
RGBrgb(24, 28, 113)
HSLhsl(237, 65%, 27%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(78.8%, 75.2%, 0%, 55.7%)
CIE-LABlab(16.59, 30.09, -49.02)
CIE-LCHlch(16.59, 57.52, 301.54°)
OKLaboklab(29.35% 0.004 -0.1419)
OKLCHoklch(29.35% 0.142 271.6)
XYZxyz(3.7716, 2.2166, 15.8486)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C71 #716D18
analogous
#184971 #181C71 #411871
triadic
#181C71 #71181C #1C7118
tetradic
#181C71 #711849 #716D18 #187141
square
#181C71 #711849 #716D18 #187141
split-complementary
#181C71 #714118 #497118
monochromatic
#050619 #0D0F3F #181C71 #2329A3 #3038D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181C71#FFFFFF#000000##FFFFFF
##181C711.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)
#002D74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181c71;
/* rgb */ color: rgb(24, 28, 113);
/* oklch */ color: oklch(29.3% 0.142 271.6);
Tailwind
colors: {
  custom: {
    50: '#65599b',
    500: '#181c71',
    950: '#000000',
  },
}
SCSS
$custom: #181c71;
$custom-light: #65599b;
$custom-dark: #000000;
JSON
{
  "hex": "#181c71",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 237.303,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29347,
    "c": 0.14196,
    "h": 271.6
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#181C71
secondary
#A6A23E
accent
#E040E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181C71

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

Preview Lab → · Contrast checker → · Palette generator →

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