#181C66#181C66

#181C66 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.1% C 0.127 H 272.5°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#181C66
RGBrgb(24, 28, 102)
HSLhsl(237, 62%, 25%)
HSVhsv(237, 76%, 40%)
CMYKcmyk(76.5%, 72.5%, 0%, 60%)
CIE-LABlab(15.40, 25.92, -43.79)
CIE-LCHlch(15.40, 50.89, 300.62°)
OKLaboklab(28.14% 0.0056 -0.1266)
OKLCHoklch(28.14% 0.127 272.5)
XYZxyz(3.1894, 1.9837, 12.7826)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C66 #666218
analogous
#184366 #181C66 #3B1866
triadic
#181C66 #66181C #1C6618
tetradic
#181C66 #661843 #666218 #18663B
square
#181C66 #661843 #666218 #18663B
split-complementary
#181C66 #663B18 #436618
monochromatic
#060719 #0C0E34 #181C66 #242A98 #2F37C9

Accessibility & contrast

On white

15.03
#181C66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181C66
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C66#FFFFFF#000000##FFFFFF
##181C661.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#00303E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181c66;
/* rgb */ color: rgb(24, 28, 102);
/* oklch */ color: oklch(28.1% 0.127 272.5);
Tailwind
colors: {
  custom: {
    50: '#625892',
    500: '#181c66',
    950: '#000000',
  },
}
SCSS
$custom: #181c66;
$custom-light: #625892;
$custom-dark: #000000;
JSON
{
  "hex": "#181c66",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 102
  },
  "hsl": {
    "h": 236.923,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28139,
    "c": 0.12675,
    "h": 272.5
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#181C66
secondary
#9C973E
accent
#DD43E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181C66

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

Preview Lab → · Contrast checker → · Palette generator →

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