#181E6C#181E6C

#181E6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.133 H 271.5°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#181E6C
RGBrgb(24, 30, 108)
HSLhsl(236, 64%, 26%)
HSVhsv(236, 78%, 42%)
CMYKcmyk(77.8%, 72.2%, 0%, 57.6%)
CIE-LABlab(16.53, 26.87, -45.87)
CIE-LCHlch(16.53, 53.16, 300.37°)
OKLaboklab(29.15% 0.0035 -0.1327)
OKLCHoklch(29.15% 0.133 271.5)
XYZxyz(3.5468, 2.2051, 14.4231)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E6C #6C6618
analogous
#18486C #181E6C #3C186C
triadic
#181E6C #6C181E #1E6C18
tetradic
#181E6C #6C1848 #6C6618 #186C3C
square
#181E6C #6C1848 #6C6618 #186C3C
split-complementary
#181E6C #6C3C18 #486C18
monochromatic
#060719 #0D103A #181E6C #232C9E #2E3AD0

Accessibility & contrast

On white

14.57
#181E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E6C
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E6C#FFFFFF#000000##FFFFFF
##181E6C1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181e6c;
/* rgb */ color: rgb(24, 30, 108);
/* oklch */ color: oklch(29.1% 0.133 271.5);
Tailwind
colors: {
  custom: {
    50: '#645a97',
    500: '#181e6c',
    950: '#000000',
  },
}
SCSS
$custom: #181e6c;
$custom-light: #645a97;
$custom-dark: #000000;
JSON
{
  "hex": "#181e6c",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 235.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29145,
    "c": 0.13275,
    "h": 271.5
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#181E6C
secondary
#A29B3E
accent
#DB41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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