#181C78#181C78

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

Color values

HEX#181C78
RGBrgb(24, 28, 120)
HSLhsl(238, 67%, 28%)
HSVhsv(238, 80%, 47%)
CMYKcmyk(80%, 76.7%, 0%, 52.9%)
CIE-LABlab(17.37, 32.67, -52.24)
CIE-LCHlch(17.37, 61.62, 302.02°)
OKLaboklab(30.14% 0.0028 -0.1513)
OKLCHoklch(30.14% 0.151 271.1)
XYZxyz(4.1810, 2.3803, 18.0048)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C78 #787418
analogous
#184C78 #181C78 #441878
triadic
#181C78 #78181C #1C7818
tetradic
#181C78 #78184C #787418 #187844
square
#181C78 #78184C #787418 #187844
split-complementary
#181C78 #784418 #4C7818
monochromatic
#05061A #0E1045 #181C78 #2228AB #343BD6

Accessibility & contrast

On white

14.23
#181C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C78
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C78#FFFFFF#000000##FFFFFF
##181C781.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181c78;
/* rgb */ color: rgb(24, 28, 120);
/* oklch */ color: oklch(30.1% 0.151 271.1);
Tailwind
colors: {
  custom: {
    50: '#6759a0',
    500: '#181c78',
    950: '#000000',
  },
}
SCSS
$custom: #181c78;
$custom-light: #6759a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181c78",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 237.5,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3014,
    "c": 0.1513,
    "h": 271.1
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#181C78
secondary
#ADA83F
accent
#E23EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181C78

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

Preview Lab → · Contrast checker → · Palette generator →

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