#181C77#181C77

#181C77 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.150 H 271.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#181C77
RGBrgb(24, 28, 119)
HSLhsl(237, 66%, 28%)
HSVhsv(237, 80%, 47%)
CMYKcmyk(79.8%, 76.5%, 0%, 53.3%)
CIE-LABlab(17.26, 32.31, -51.79)
CIE-LCHlch(17.26, 61.04, 301.96°)
OKLaboklab(30.03% 0.003 -0.1499)
OKLCHoklch(30.03% 0.15 271.1)
XYZxyz(4.1206, 2.3562, 17.6868)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C77 #777318
analogous
#184B77 #181C77 #431877
triadic
#181C77 #77181C #1C7718
tetradic
#181C77 #77184B #777318 #187743
square
#181C77 #77184B #777318 #187743
split-complementary
#181C77 #774318 #4B7718
monochromatic
#050619 #0E1044 #181C77 #2228AA #333AD6

Accessibility & contrast

On white

14.27
#181C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C77
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C77#FFFFFF#000000##FFFFFF
##181C771.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181c77;
/* rgb */ color: rgb(24, 28, 119);
/* oklch */ color: oklch(30.0% 0.150 271.1);
Tailwind
colors: {
  custom: {
    50: '#67599f',
    500: '#181c77',
    950: '#000000',
  },
}
SCSS
$custom: #181c77;
$custom-light: #67599f;
$custom-dark: #000000;
JSON
{
  "hex": "#181c77",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 237.474,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30026,
    "c": 0.14998,
    "h": 271.1
  },
  "luminance": 0.02357
}

Semantic roles & 50–950 ramp

primary
#181C77
secondary
#ACA73F
accent
#E23EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181C77

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

Preview Lab → · Contrast checker → · Palette generator →

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