#181B74#181B74

#181B74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.147 H 271.6°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#181B74
RGBrgb(24, 27, 116)
HSLhsl(238, 66%, 27%)
HSVhsv(238, 79%, 45%)
CMYKcmyk(79.3%, 76.7%, 0%, 54.5%)
CIE-LABlab(16.69, 31.83, -50.79)
CIE-LCHlch(16.69, 59.94, 302.08°)
OKLaboklab(29.52% 0.004 -0.147)
OKLCHoklch(29.52% 0.147 271.6)
XYZxyz(3.9199, 2.2386, 16.7451)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B74 #747118
analogous
#184974 #181B74 #431874
triadic
#181B74 #74181B #1B7418
tetradic
#181B74 #741849 #747118 #187443
square
#181B74 #741849 #747118 #187443
split-complementary
#181B74 #744318 #497418
monochromatic
#050619 #0E0F41 #181B74 #2227A7 #3237D5

Accessibility & contrast

On white

14.50
#181B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B74
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B74#FFFFFF#000000##FFFFFF
##181B741.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181b74;
/* rgb */ color: rgb(24, 27, 116);
/* oklch */ color: oklch(29.5% 0.147 271.6);
Tailwind
colors: {
  custom: {
    50: '#66589d',
    500: '#181b74',
    950: '#000000',
  },
}
SCSS
$custom: #181b74;
$custom-light: #66589d;
$custom-dark: #000000;
JSON
{
  "hex": "#181b74",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 238.043,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29524,
    "c": 0.14707,
    "h": 271.6
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#181B74
secondary
#A9A63F
accent
#E33FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B74

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

Preview Lab → · Contrast checker → · Palette generator →

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