#181876#181876

#181876 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.153 H 271.8°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#181876
RGBrgb(24, 24, 118)
HSLhsl(240, 66%, 28%)
HSVhsv(240, 80%, 46%)
CMYKcmyk(79.7%, 79.7%, 0%, 53.7%)
CIE-LABlab(16.28, 34.37, -52.76)
CIE-LCHlch(16.28, 62.97, 303.09°)
OKLaboklab(29.3% 0.0049 -0.1527)
OKLCHoklch(29.3% 0.153 271.8)
XYZxyz(3.9722, 2.1550, 17.3426)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181876 #767618
analogous
#184776 #181876 #471876
triadic
#181876 #761818 #187618
tetradic
#181876 #761847 #767618 #187647
square
#181876 #761847 #767618 #187647
split-complementary
#181876 #764718 #477618
monochromatic
#050519 #0E0E43 #181876 #2222A9 #3333D5

Accessibility & contrast

On white

14.68
#181876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181876
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181876#FFFFFF#000000##FFFFFF
##1818761.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181876;
/* rgb */ color: rgb(24, 24, 118);
/* oklch */ color: oklch(29.3% 0.153 271.8);
Tailwind
colors: {
  custom: {
    50: '#67569f',
    500: '#181876',
    950: '#000000',
  },
}
SCSS
$custom: #181876;
$custom-light: #67569f;
$custom-dark: #000000;
JSON
{
  "hex": "#181876",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 240,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29301,
    "c": 0.1528,
    "h": 271.8
  },
  "luminance": 0.02155
}

Semantic roles & 50–950 ramp

primary
#181876
secondary
#ABAB3F
accent
#E93FE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181876

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

Preview Lab → · Contrast checker → · Palette generator →

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