#181966#181966

#181966 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.130 H 273.3°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#181966
RGBrgb(24, 25, 102)
HSLhsl(239, 62%, 25%)
HSVhsv(239, 76%, 40%)
CMYKcmyk(76.5%, 75.5%, 0%, 60%)
CIE-LABlab(14.67, 27.92, -44.99)
CIE-LCHlch(14.67, 52.95, 301.83°)
OKLaboklab(27.61% 0.0075 -0.1301)
OKLCHoklch(27.61% 0.13 273.3)
XYZxyz(3.1218, 1.8484, 12.7601)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181966 #666518
analogous
#184066 #181966 #3E1866
triadic
#181966 #661819 #196618
tetradic
#181966 #661840 #666518 #18663E
square
#181966 #661840 #666518 #18663E
split-complementary
#181966 #663E18 #406618
monochromatic
#060619 #0C0D34 #181966 #242598 #2F31C9

Accessibility & contrast

On white

15.33
#181966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181966
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181966#FFFFFF#000000##FFFFFF
##1819661.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002165
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181966;
/* rgb */ color: rgb(24, 25, 102);
/* oklch */ color: oklch(27.6% 0.130 273.3);
Tailwind
colors: {
  custom: {
    50: '#635693',
    500: '#181966',
    950: '#000000',
  },
}
SCSS
$custom: #181966;
$custom-light: #635693;
$custom-dark: #000000;
JSON
{
  "hex": "#181966",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 239.231,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27613,
    "c": 0.13034,
    "h": 273.3
  },
  "luminance": 0.01849
}

Semantic roles & 50–950 ramp

primary
#181966
secondary
#9C9B3E
accent
#E343E5
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181966

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

Preview Lab → · Contrast checker → · Palette generator →

#181966 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva