#181F7B#181F7B

#181F7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.152 H 270.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#181F7B
RGBrgb(24, 31, 123)
HSLhsl(236, 67%, 29%)
HSVhsv(236, 80%, 48%)
CMYKcmyk(80.5%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.38, 31.89, -52.49)
CIE-LCHlch(18.38, 61.42, 301.28°)
OKLaboklab(30.96% 0.001 -0.152)
OKLCHoklch(30.96% 0.152 270.4)
XYZxyz(4.4406, 2.6037, 19.0036)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F7B #7B7418
analogous
#18517B #181F7B #43187B
triadic
#181F7B #7B181F #1F7B18
tetradic
#181F7B #7B1851 #7B7418 #187B43
square
#181F7B #7B1851 #7B7418 #187B43
split-complementary
#181F7B #7B4318 #517B18
monochromatic
#05061A #0E1248 #181F7B #222CAE #3641D8

Accessibility & contrast

On white

13.81
#181F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F7B
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F7B#FFFFFF#000000##FFFFFF
##181F7B1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181f7b;
/* rgb */ color: rgb(24, 31, 123);
/* oklch */ color: oklch(31.0% 0.152 270.4);
Tailwind
colors: {
  custom: {
    50: '#685ba2',
    500: '#181f7b',
    950: '#000000',
  },
}
SCSS
$custom: #181f7b;
$custom-light: #685ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#181f7b",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 235.758,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30963,
    "c": 0.152,
    "h": 270.4
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#181F7B
secondary
#B0A83F
accent
#DE3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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