#181C80#181C80

#181C80 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.162 H 270.5°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#181C80
RGBrgb(24, 28, 128)
HSLhsl(238, 68%, 30%)
HSVhsv(238, 81%, 50%)
CMYKcmyk(81.3%, 78.1%, 0%, 49.8%)
CIE-LABlab(18.29, 35.56, -55.83)
CIE-LCHlch(18.29, 66.19, 302.49°)
OKLaboklab(31.07% 0.0014 -0.1617)
OKLCHoklch(31.07% 0.162 270.5)
XYZxyz(4.6869, 2.5827, 20.6694)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C80 #807C18
analogous
#185080 #181C80 #481880
triadic
#181C80 #80181C #1C8018
tetradic
#181C80 #801850 #807C18 #188048
square
#181C80 #801850 #807C18 #188048
split-complementary
#181C80 #804818 #508018
monochromatic
#05061A #0E114C #181C80 #2227B4 #393FDA

Accessibility & contrast

On white

13.85
#181C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C80
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C80#FFFFFF#000000##FFFFFF
##181C801.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181c80;
/* rgb */ color: rgb(24, 28, 128);
/* oklch */ color: oklch(31.1% 0.162 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a5aa6',
    500: '#181c80',
    950: '#000000',
  },
}
SCSS
$custom: #181c80;
$custom-light: #6a5aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#181c80",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 237.692,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31065,
    "c": 0.16169,
    "h": 270.5
  },
  "luminance": 0.02583
}

Semantic roles & 50–950 ramp

primary
#181C80
secondary
#B4B040
accent
#E53DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #181C80

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

Preview Lab → · Contrast checker → · Palette generator →

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