#181C6C#181C6C

#181C6C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.135 H 272.0°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#181C6C
RGBrgb(24, 28, 108)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 42%)
CMYKcmyk(77.8%, 74.1%, 0%, 57.6%)
CIE-LABlab(16.04, 28.21, -46.67)
CIE-LCHlch(16.04, 54.54, 301.15°)
OKLaboklab(28.79% 0.0047 -0.135)
OKLCHoklch(28.79% 0.135 272)
XYZxyz(3.4978, 2.1070, 14.4068)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C6C #6C6818
analogous
#18466C #181C6C #3E186C
triadic
#181C6C #6C181C #1C6C18
tetradic
#181C6C #6C1846 #6C6818 #186C3E
square
#181C6C #6C1846 #6C6818 #186C3E
split-complementary
#181C6C #6C3E18 #466C18
monochromatic
#060619 #0D0F3A #181C6C #23299E #2E36D0

Accessibility & contrast

On white

14.77
#181C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181C6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C6C
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C6C#FFFFFF#000000##FFFFFF
##181C6C1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181c6c;
/* rgb */ color: rgb(24, 28, 108);
/* oklch */ color: oklch(28.8% 0.135 272.0);
Tailwind
colors: {
  custom: {
    50: '#645897',
    500: '#181c6c',
    950: '#000000',
  },
}
SCSS
$custom: #181c6c;
$custom-light: #645897;
$custom-dark: #000000;
JSON
{
  "hex": "#181c6c",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 237.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28792,
    "c": 0.13513,
    "h": 272
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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