#181F78#181F78

#181F78 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.148 H 270.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#181F78
RGBrgb(24, 31, 120)
HSLhsl(236, 67%, 28%)
HSVhsv(236, 80%, 47%)
CMYKcmyk(80%, 74.2%, 0%, 52.9%)
CIE-LABlab(18.05, 30.77, -51.11)
CIE-LCHlch(18.05, 59.66, 301.05°)
OKLaboklab(30.63% 0.0014 -0.148)
OKLCHoklch(30.63% 0.148 270.5)
XYZxyz(4.2557, 2.5298, 18.0297)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F78 #787118
analogous
#184F78 #181F78 #411878
triadic
#181F78 #78181F #1F7818
tetradic
#181F78 #78184F #787118 #187841
square
#181F78 #78184F #787118 #187841
split-complementary
#181F78 #784118 #4F7818
monochromatic
#05071A #0E1245 #181F78 #222CAB #3440D6

Accessibility & contrast

On white

13.94
#181F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F78
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F78#FFFFFF#000000##FFFFFF
##181F781.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003849
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181f78;
/* rgb */ color: rgb(24, 31, 120);
/* oklch */ color: oklch(30.6% 0.148 270.5);
Tailwind
colors: {
  custom: {
    50: '#675ba0',
    500: '#181f78',
    950: '#000000',
  },
}
SCSS
$custom: #181f78;
$custom-light: #675ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#181f78",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 235.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30629,
    "c": 0.14801,
    "h": 270.5
  },
  "luminance": 0.0253
}

Semantic roles & 50–950 ramp

primary
#181F78
secondary
#ADA53F
accent
#DD3EEA
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F78

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

Preview Lab → · Contrast checker → · Palette generator →

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