#181872#181872

#181872 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.148 H 272.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#181872
RGBrgb(24, 24, 114)
HSLhsl(240, 65%, 27%)
HSVhsv(240, 79%, 45%)
CMYKcmyk(78.9%, 78.9%, 0%, 55.3%)
CIE-LABlab(15.81, 32.95, -50.95)
CIE-LCHlch(15.81, 60.68, 302.89°)
OKLaboklab(28.83% 0.0057 -0.1475)
OKLCHoklch(28.83% 0.148 272.2)
XYZxyz(3.7396, 2.0620, 16.1172)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181872 #727218
analogous
#184572 #181872 #451872
triadic
#181872 #721818 #187218
tetradic
#181872 #721845 #727218 #187245
square
#181872 #721845 #727218 #187245
split-complementary
#181872 #724518 #457218
monochromatic
#050519 #0D0D3F #181872 #2323A5 #3131D4

Accessibility & contrast

On white

14.87
#181872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181872
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181872#FFFFFF#000000##FFFFFF
##1818721.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181872;
/* rgb */ color: rgb(24, 24, 114);
/* oklch */ color: oklch(28.8% 0.148 272.2);
Tailwind
colors: {
  custom: {
    50: '#66569c',
    500: '#181872',
    950: '#000000',
  },
}
SCSS
$custom: #181872;
$custom-light: #66569c;
$custom-dark: #000000;
JSON
{
  "hex": "#181872",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.28829,
    "c": 0.14759,
    "h": 272.2
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#181872
secondary
#A7A73E
accent
#E840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181872

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

Preview Lab → · Contrast checker → · Palette generator →

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