#181668#181668

#181668 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.136 H 273.7°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#181668
RGBrgb(24, 22, 104)
HSLhsl(241, 65%, 25%)
HSVhsv(241, 79%, 41%)
CMYKcmyk(76.9%, 78.8%, 0%, 59.2%)
CIE-LABlab(14.21, 30.56, -47.06)
CIE-LCHlch(14.21, 56.12, 303.00°)
OKLaboklab(27.36% 0.0088 -0.1361)
OKLCHoklch(27.36% 0.136 273.7)
XYZxyz(3.1615, 1.7672, 13.2685)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181668 #666816
analogous
#163D68 #181668 #411668
triadic
#181668 #681816 #166818
tetradic
#181668 #68163D #666816 #166841
square
#181668 #68163D #666816 #166841
split-complementary
#181668 #684116 #3D6816
monochromatic
#060519 #0C0B35 #181668 #24219B #2F2BCD

Accessibility & contrast

On white

15.52
#181668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181668
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181668#FFFFFF#000000##FFFFFF
##1816681.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002067
Tritanopia (blue-blind)
#002E3E
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181668;
/* rgb */ color: rgb(24, 22, 104);
/* oklch */ color: oklch(27.4% 0.136 273.7);
Tailwind
colors: {
  custom: {
    50: '#645494',
    500: '#181668',
    950: '#000000',
  },
}
SCSS
$custom: #181668;
$custom-light: #645494;
$custom-dark: #000000;
JSON
{
  "hex": "#181668",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 241.463,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27356,
    "c": 0.13643,
    "h": 273.7
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#181668
secondary
#9C9F3B
accent
#E840E4
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181668

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

Preview Lab → · Contrast checker → · Palette generator →

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