#181572#181572

#181572 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.151 H 272.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#181572
RGBrgb(24, 21, 114)
HSLhsl(242, 69%, 26%)
HSVhsv(242, 82%, 45%)
CMYKcmyk(78.9%, 81.6%, 0%, 55.3%)
CIE-LABlab(15.20, 34.70, -51.97)
CIE-LCHlch(15.20, 62.49, 303.73°)
OKLaboklab(28.4% 0.007 -0.1504)
OKLCHoklch(28.4% 0.151 272.7)
XYZxyz(3.6811, 1.9450, 16.0978)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181572 #6F7215
analogous
#154172 #181572 #471572
triadic
#181572 #721815 #157218
tetradic
#181572 #721541 #6F7215 #157247
square
#181572 #721541 #6F7215 #157247
split-complementary
#181572 #724715 #417215
monochromatic
#05051A #0D0B3E #181572 #231FA6 #2F2AD8

Accessibility & contrast

On white

15.12
#181572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181572
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181572#FFFFFF#000000##FFFFFF
##1815721.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181572;
/* rgb */ color: rgb(24, 21, 114);
/* oklch */ color: oklch(28.4% 0.151 272.7);
Tailwind
colors: {
  custom: {
    50: '#66549c',
    500: '#181572',
    950: '#000000',
  },
}
SCSS
$custom: #181572;
$custom-light: #66549c;
$custom-dark: #000000;
JSON
{
  "hex": "#181572",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 241.935,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28397,
    "c": 0.15055,
    "h": 272.7
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#181572
secondary
#A5A83B
accent
#EC3CE6
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181572

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

Preview Lab → · Contrast checker → · Palette generator →

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