#181566#181566

#181566 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.135 H 274.2°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#181566
RGBrgb(24, 21, 102)
HSLhsl(242, 66%, 24%)
HSVhsv(242, 79%, 40%)
CMYKcmyk(76.5%, 79.4%, 0%, 60%)
CIE-LABlab(13.77, 30.46, -46.49)
CIE-LCHlch(13.77, 55.57, 303.23°)
OKLaboklab(26.97% 0.0098 -0.1345)
OKLCHoklch(26.97% 0.135 274.2)
XYZxyz(3.0423, 1.6895, 12.7336)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181566 #636615
analogous
#153B66 #181566 #411566
triadic
#181566 #661815 #156618
tetradic
#181566 #66153B #636615 #156641
square
#181566 #66153B #636615 #156641
split-complementary
#181566 #664115 #3B6615
monochromatic
#060519 #0C0B33 #181566 #241F99 #302ACC

Accessibility & contrast

On white

15.70
#181566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181566
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181566#FFFFFF#000000##FFFFFF
##1815661.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#001F65
Tritanopia (blue-blind)
#002D3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181566;
/* rgb */ color: rgb(24, 21, 102);
/* oklch */ color: oklch(27.0% 0.135 274.2);
Tailwind
colors: {
  custom: {
    50: '#635493',
    500: '#181566',
    950: '#000000',
  },
}
SCSS
$custom: #181566;
$custom-light: #635493;
$custom-dark: #000000;
JSON
{
  "hex": "#181566",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 242.222,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.26969,
    "c": 0.13481,
    "h": 274.2
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#181566
secondary
#999D3A
accent
#E93FE3
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #181566

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

Preview Lab → · Contrast checker → · Palette generator →

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