#181678#181678

#181678 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.157 H 271.9°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#181678
RGBrgb(24, 22, 120)
HSLhsl(241, 69%, 28%)
HSVhsv(241, 82%, 47%)
CMYKcmyk(80%, 81.7%, 0%, 52.9%)
CIE-LABlab(16.12, 36.22, -54.30)
CIE-LCHlch(16.12, 65.27, 303.70°)
OKLaboklab(29.26% 0.0052 -0.1572)
OKLCHoklch(29.26% 0.157 271.9)
XYZxyz(4.0526, 2.1236, 17.9620)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181678 #767816
analogous
#164578 #181678 #491678
triadic
#181678 #781816 #167818
tetradic
#181678 #781645 #767816 #167849
square
#181678 #781645 #767816 #167849
split-complementary
#181678 #784916 #457816
monochromatic
#05051A #0E0D44 #181678 #221FAC #332FD9

Accessibility & contrast

On white

14.74
#181678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181678
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181678#FFFFFF#000000##FFFFFF
##1816781.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002376
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181678;
/* rgb */ color: rgb(24, 22, 120);
/* oklch */ color: oklch(29.3% 0.157 271.9);
Tailwind
colors: {
  custom: {
    50: '#6855a0',
    500: '#181678',
    950: '#000000',
  },
}
SCSS
$custom: #181678;
$custom-light: #6855a0;
$custom-dark: #000000;
JSON
{
  "hex": "#181678",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 241.224,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29261,
    "c": 0.15727,
    "h": 271.9
  },
  "luminance": 0.02124
}

Semantic roles & 50–950 ramp

primary
#181678
secondary
#ABAD3C
accent
#EC3CE8
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181678

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

Preview Lab → · Contrast checker → · Palette generator →

#181678 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva