#181562#181562

#181562 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.5% C 0.129 H 274.7°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#181562
RGBrgb(24, 21, 98)
HSLhsl(242, 65%, 23%)
HSVhsv(242, 79%, 38%)
CMYKcmyk(75.5%, 78.6%, 0%, 61.6%)
CIE-LABlab(13.30, 29.00, -44.60)
CIE-LCHlch(13.30, 53.20, 303.04°)
OKLaboklab(26.5% 0.0106 -0.129)
OKLCHoklch(26.5% 0.129 274.7)
XYZxyz(2.8487, 1.6121, 11.7139)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181562 #5F6215
analogous
#153862 #181562 #3E1562
triadic
#181562 #621815 #156218
tetradic
#181562 #621538 #5F6215 #15623E
square
#181562 #621538 #5F6215 #15623E
split-complementary
#181562 #623E15 #386215
monochromatic
#060519 #0C0A30 #181562 #242094 #312BC7

Accessibility & contrast

On white

15.88
#181562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181562
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181562#FFFFFF#000000##FFFFFF
##1815621.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002B3A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181562;
/* rgb */ color: rgb(24, 21, 98);
/* oklch */ color: oklch(26.5% 0.129 274.7);
Tailwind
colors: {
  custom: {
    50: '#625390',
    500: '#181562',
    950: '#000000',
  },
}
SCSS
$custom: #181562;
$custom-light: #625390;
$custom-dark: #000000;
JSON
{
  "hex": "#181562",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 242.338,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.26504,
    "c": 0.1294,
    "h": 274.7
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#181562
secondary
#95993A
accent
#E840E1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #181562

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

Preview Lab → · Contrast checker → · Palette generator →

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