#181F77#181F77

#181F77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.147 H 270.6°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#181F77
RGBrgb(24, 31, 119)
HSLhsl(236, 66%, 28%)
HSVhsv(236, 80%, 47%)
CMYKcmyk(79.8%, 73.9%, 0%, 53.3%)
CIE-LABlab(17.94, 30.39, -50.65)
CIE-LCHlch(17.94, 59.07, 300.97°)
OKLaboklab(30.52% 0.0015 -0.1466)
OKLCHoklch(30.52% 0.147 270.6)
XYZxyz(4.1953, 2.5056, 17.7117)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F77 #777018
analogous
#184E77 #181F77 #401877
triadic
#181F77 #77181F #1F7718
tetradic
#181F77 #77184E #777018 #187740
square
#181F77 #77184E #777018 #187740
split-complementary
#181F77 #774018 #4E7718
monochromatic
#050719 #0E1244 #181F77 #222CAA #333FD6

Accessibility & contrast

On white

13.99
#181F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F77
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F77#FFFFFF#000000##FFFFFF
##181F771.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181f77;
/* rgb */ color: rgb(24, 31, 119);
/* oklch */ color: oklch(30.5% 0.147 270.6);
Tailwind
colors: {
  custom: {
    50: '#675b9f',
    500: '#181f77',
    950: '#000000',
  },
}
SCSS
$custom: #181f77;
$custom-light: #675b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#181f77",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 235.579,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30519,
    "c": 0.14666,
    "h": 270.6
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#181F77
secondary
#ACA43F
accent
#DD3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #181F77

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

Preview Lab → · Contrast checker → · Palette generator →

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