#181868#181868

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

Color values

HEX#181868
RGBrgb(24, 24, 104)
HSLhsl(240, 63%, 25%)
HSVhsv(240, 77%, 41%)
CMYKcmyk(76.9%, 76.9%, 0%, 59.2%)
CIE-LABlab(14.66, 29.31, -46.33)
CIE-LCHlch(14.66, 54.82, 302.32°)
OKLaboklab(27.67% 0.0077 -0.134)
OKLCHoklch(27.67% 0.134 273.3)
XYZxyz(3.2012, 1.8466, 13.2817)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181868 #686818
analogous
#184068 #181868 #401868
triadic
#181868 #681818 #186818
tetradic
#181868 #681840 #686818 #186840
square
#181868 #681840 #686818 #186840
split-complementary
#181868 #684018 #406818
monochromatic
#060619 #0D0D36 #181868 #23239A #2F2FCB

Accessibility & contrast

On white

15.34
#181868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181868
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181868#FFFFFF#000000##FFFFFF
##1818681.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002167
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181868;
/* rgb */ color: rgb(24, 24, 104);
/* oklch */ color: oklch(27.7% 0.134 273.3);
Tailwind
colors: {
  custom: {
    50: '#635694',
    500: '#181868',
    950: '#000000',
  },
}
SCSS
$custom: #181868;
$custom-light: #635694;
$custom-dark: #000000;
JSON
{
  "hex": "#181868",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 240,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27673,
    "c": 0.13424,
    "h": 273.3
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#181868
secondary
#9E9E3E
accent
#E642E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181868

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

Preview Lab → · Contrast checker → · Palette generator →

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