#181F74#181F74

#181F74 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.143 H 270.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#181F74
RGBrgb(24, 31, 116)
HSLhsl(235, 66%, 27%)
HSVhsv(235, 79%, 45%)
CMYKcmyk(79.3%, 73.3%, 0%, 54.5%)
CIE-LABlab(17.62, 29.26, -49.26)
CIE-LCHlch(17.62, 57.29, 300.71°)
OKLaboklab(30.19% 0.0019 -0.1426)
OKLCHoklch(30.19% 0.143 270.8)
XYZxyz(4.0180, 2.4347, 16.7778)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F74 #746D18
analogous
#184D74 #181F74 #3F1874
triadic
#181F74 #74181F #1F7418
tetradic
#181F74 #74184D #746D18 #18743F
square
#181F74 #74184D #746D18 #18743F
split-complementary
#181F74 #743F18 #4D7418
monochromatic
#050719 #0E1141 #181F74 #222DA7 #323ED5

Accessibility & contrast

On white

14.12
#181F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F74
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F74#FFFFFF#000000##FFFFFF
##181F741.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181f74;
/* rgb */ color: rgb(24, 31, 116);
/* oklch */ color: oklch(30.2% 0.143 270.8);
Tailwind
colors: {
  custom: {
    50: '#665b9d',
    500: '#181f74',
    950: '#000000',
  },
}
SCSS
$custom: #181f74;
$custom-light: #665b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#181f74",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 235.435,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30189,
    "c": 0.14259,
    "h": 270.8
  },
  "luminance": 0.02435
}

Semantic roles & 50–950 ramp

primary
#181F74
secondary
#A9A13F
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181F74

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

Preview Lab → · Contrast checker → · Palette generator →

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