#181F6D#181F6D

#181F6D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.4% C 0.133 H 271.2°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#181F6D
RGBrgb(24, 31, 109)
HSLhsl(235, 64%, 26%)
HSVhsv(235, 78%, 43%)
CMYKcmyk(78%, 71.6%, 0%, 57.3%)
CIE-LABlab(16.88, 26.58, -45.94)
CIE-LCHlch(16.88, 53.08, 300.06°)
OKLaboklab(29.43% 0.0028 -0.1329)
OKLCHoklch(29.43% 0.133 271.2)
XYZxyz(3.6261, 2.2779, 14.7136)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F6D #6D6618
analogous
#18496D #181F6D #3B186D
triadic
#181F6D #6D181F #1F6D18
tetradic
#181F6D #6D1849 #6D6618 #186D3B
square
#181F6D #6D1849 #6D6618 #186D3B
split-complementary
#181F6D #6D3B18 #496D18
monochromatic
#060719 #0D113B #181F6D #232D9F #2E3CD1

Accessibility & contrast

On white

14.43
#181F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181F6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F6D
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F6D#FFFFFF#000000##FFFFFF
##181F6D1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181f6d;
/* rgb */ color: rgb(24, 31, 109);
/* oklch */ color: oklch(29.4% 0.133 271.2);
Tailwind
colors: {
  custom: {
    50: '#645b98',
    500: '#181f6d',
    950: '#000000',
  },
}
SCSS
$custom: #181f6d;
$custom-light: #645b98;
$custom-dark: #000000;
JSON
{
  "hex": "#181f6d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 109
  },
  "hsl": {
    "h": 235.059,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29433,
    "c": 0.13292,
    "h": 271.2
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#181F6D
secondary
#A39A3E
accent
#D941E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #181F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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