#181F79#181F79

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

Color values

HEX#181F79
RGBrgb(24, 31, 121)
HSLhsl(236, 67%, 28%)
HSVhsv(236, 80%, 47%)
CMYKcmyk(80.2%, 74.4%, 0%, 52.5%)
CIE-LABlab(18.16, 31.14, -51.57)
CIE-LCHlch(18.16, 60.25, 301.12°)
OKLaboklab(30.74% 0.0013 -0.1493)
OKLCHoklch(30.74% 0.149 270.5)
XYZxyz(4.3167, 2.5542, 18.3510)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F79 #797218
analogous
#184F79 #181F79 #411879
triadic
#181F79 #79181F #1F7918
tetradic
#181F79 #79184F #797218 #187941
square
#181F79 #79184F #797218 #187941
split-complementary
#181F79 #794118 #4F7918
monochromatic
#05071A #0E1246 #181F79 #222CAC #3540D7

Accessibility & contrast

On white

13.90
#181F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F79
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F79#FFFFFF#000000##FFFFFF
##181F791.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181f79;
/* rgb */ color: rgb(24, 31, 121);
/* oklch */ color: oklch(30.7% 0.149 270.5);
Tailwind
colors: {
  custom: {
    50: '#675ba1',
    500: '#181f79',
    950: '#000000',
  },
}
SCSS
$custom: #181f79;
$custom-light: #675ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#181f79",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 235.67,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3074,
    "c": 0.14935,
    "h": 270.5
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#181F79
secondary
#AEA63F
accent
#DD3EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F79

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

Preview Lab → · Contrast checker → · Palette generator →

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