#181C6E#181C6E

#181C6E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.138 H 271.8°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#181C6E
RGBrgb(24, 28, 110)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 43%)
CMYKcmyk(78.2%, 74.5%, 0%, 56.9%)
CIE-LABlab(16.26, 28.97, -47.62)
CIE-LCHlch(16.26, 55.74, 301.31°)
OKLaboklab(29.01% 0.0044 -0.1378)
OKLCHoklch(29.01% 0.138 271.8)
XYZxyz(3.6055, 2.1501, 14.9738)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6E #6E6A18
analogous
#18476E #181C6E #3F186E
triadic
#181C6E #6E181C #1C6E18
tetradic
#181C6E #6E1847 #6E6A18 #186E3F
square
#181C6E #6E1847 #6E6A18 #186E3F
split-complementary
#181C6E #6E3F18 #476E18
monochromatic
#050619 #0D0F3C #181C6E #2329A0 #2F36D2

Accessibility & contrast

On white

14.69
#181C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C6E
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6E#FFFFFF#000000##FFFFFF
##181C6E1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181c6e;
/* rgb */ color: rgb(24, 28, 110);
/* oklch */ color: oklch(29.0% 0.138 271.8);
Tailwind
colors: {
  custom: {
    50: '#655999',
    500: '#181c6e',
    950: '#000000',
  },
}
SCSS
$custom: #181c6e;
$custom-light: #655999;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6e",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 237.209,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29013,
    "c": 0.13787,
    "h": 271.8
  },
  "luminance": 0.0215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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