#181C68#181C68

#181C68 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.130 H 272.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#181C68
RGBrgb(24, 28, 104)
HSLhsl(237, 63%, 25%)
HSVhsv(237, 77%, 41%)
CMYKcmyk(76.9%, 73.1%, 0%, 59.2%)
CIE-LABlab(15.61, 26.69, -44.76)
CIE-LCHlch(15.61, 52.11, 300.81°)
OKLaboklab(28.36% 0.0053 -0.1295)
OKLCHoklch(28.36% 0.13 272.3)
XYZxyz(3.2898, 2.0238, 13.3113)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C68 #686418
analogous
#184468 #181C68 #3C1868
triadic
#181C68 #68181C #1C6818
tetradic
#181C68 #681844 #686418 #18683C
square
#181C68 #681844 #686418 #18683C
split-complementary
#181C68 #683C18 #446818
monochromatic
#060719 #0D0F36 #181C68 #23299A #2F37CB

Accessibility & contrast

On white

14.95
#181C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C68
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C68#FFFFFF#000000##FFFFFF
##181C681.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181c68;
/* rgb */ color: rgb(24, 28, 104);
/* oklch */ color: oklch(28.4% 0.130 272.3);
Tailwind
colors: {
  custom: {
    50: '#635894',
    500: '#181c68',
    950: '#000000',
  },
}
SCSS
$custom: #181c68;
$custom-light: #635894;
$custom-dark: #000000;
JSON
{
  "hex": "#181c68",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 237,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28355,
    "c": 0.12957,
    "h": 272.3
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#181C68
secondary
#9E993E
accent
#DD42E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181C68

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

Preview Lab → · Contrast checker → · Palette generator →

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