#181C6D#181C6D

#181C6D is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.137 H 271.9°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#181C6D
RGBrgb(24, 28, 109)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 43%)
CMYKcmyk(78%, 74.3%, 0%, 57.3%)
CIE-LABlab(16.15, 28.59, -47.15)
CIE-LCHlch(16.15, 55.14, 301.23°)
OKLaboklab(28.9% 0.0046 -0.1364)
OKLCHoklch(28.9% 0.137 271.9)
XYZxyz(3.5513, 2.1285, 14.6887)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6D #6D6918
analogous
#18466D #181C6D #3E186D
triadic
#181C6D #6D181C #1C6D18
tetradic
#181C6D #6D1846 #6D6918 #186D3E
square
#181C6D #6D1846 #6D6918 #186D3E
split-complementary
#181C6D #6D3E18 #466D18
monochromatic
#060619 #0D0F3B #181C6D #23299F #2E36D1

Accessibility & contrast

On white

14.73
#181C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C6D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6D#FFFFFF#000000##FFFFFF
##181C6D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181c6d;
/* rgb */ color: rgb(24, 28, 109);
/* oklch */ color: oklch(28.9% 0.137 271.9);
Tailwind
colors: {
  custom: {
    50: '#645998',
    500: '#181c6d',
    950: '#000000',
  },
}
SCSS
$custom: #181c6d;
$custom-light: #645998;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6d",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 237.176,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28902,
    "c": 0.13651,
    "h": 271.9
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#181C6D
secondary
#A39E3E
accent
#DF41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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