#181788#181788

#181788 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.176 H 270.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#181788
RGBrgb(24, 23, 136)
HSLhsl(241, 71%, 31%)
HSVhsv(241, 83%, 53%)
CMYKcmyk(82.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(18.29, 41.08, -60.87)
CIE-LCHlch(18.29, 73.43, 304.02°)
OKLaboklab(31.35% 0.0013 -0.1762)
OKLCHoklch(31.35% 0.176 270.4)
XYZxyz(5.1255, 2.5840, 23.5164)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181788 #878817
analogous
#174E88 #181788 #501788
triadic
#181788 #881817 #178818
tetradic
#181788 #88174E #878817 #178850
square
#181788 #88174E #878817 #178850
split-complementary
#181788 #885017 #4E8817
monochromatic
#06051F #0F0E54 #181788 #2120BC #3D3BDE

Accessibility & contrast

On white

13.84
#181788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181788
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181788#FFFFFF#000000##FFFFFF
##1817881.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328B
Deuteranopia (green-blind)
#002786
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181788;
/* rgb */ color: rgb(24, 23, 136);
/* oklch */ color: oklch(31.4% 0.176 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c57ac',
    500: '#181788',
    950: '#000000',
  },
}
SCSS
$custom: #181788;
$custom-light: #6c57ac;
$custom-dark: #000000;
JSON
{
  "hex": "#181788",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 240.531,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31351,
    "c": 0.17623,
    "h": 270.4
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#181788
secondary
#BBBC3F
accent
#EE3AEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181788

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

Preview Lab → · Contrast checker → · Palette generator →

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