#181F6B#181F6B

#181F6B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.130 H 271.3°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#181F6B
RGBrgb(24, 31, 107)
HSLhsl(235, 63%, 26%)
HSVhsv(235, 78%, 42%)
CMYKcmyk(77.6%, 71%, 0%, 58%)
CIE-LABlab(16.68, 25.81, -44.97)
CIE-LCHlch(16.68, 51.85, 299.85°)
OKLaboklab(29.22% 0.003 -0.1301)
OKLCHoklch(29.22% 0.13 271.3)
XYZxyz(3.5196, 2.2353, 14.1530)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F6B #6B6418
analogous
#18486B #181F6B #3A186B
triadic
#181F6B #6B181F #1F6B18
tetradic
#181F6B #6B1848 #6B6418 #186B3A
square
#181F6B #6B1848 #6B6418 #186B3A
split-complementary
#181F6B #6B3A18 #486B18
monochromatic
#060719 #0D1139 #181F6B #232D9D #2E3CCF

Accessibility & contrast

On white

14.51
#181F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F6B
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F6B#FFFFFF#000000##FFFFFF
##181F6B1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181f6b;
/* rgb */ color: rgb(24, 31, 107);
/* oklch */ color: oklch(29.2% 0.130 271.3);
Tailwind
colors: {
  custom: {
    50: '#635b96',
    500: '#181f6b',
    950: '#000000',
  },
}
SCSS
$custom: #181f6b;
$custom-light: #635b96;
$custom-dark: #000000;
JSON
{
  "hex": "#181f6b",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 234.94,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29221,
    "c": 0.13011,
    "h": 271.3
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#181F6B
secondary
#A1983E
accent
#D841E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #181F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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