#181789#181789

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

Color values

HEX#181789
RGBrgb(24, 23, 137)
HSLhsl(241, 71%, 31%)
HSVhsv(241, 83%, 54%)
CMYKcmyk(82.5%, 83.2%, 0%, 46.3%)
CIE-LABlab(18.42, 41.41, -61.29)
CIE-LCHlch(18.42, 73.97, 304.05°)
OKLaboklab(31.48% 0.0011 -0.1774)
OKLCHoklch(31.48% 0.177 270.4)
XYZxyz(5.1969, 2.6125, 23.8924)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181789 #888917
analogous
#174F89 #181789 #511789
triadic
#181789 #891817 #178918
tetradic
#181789 #89174F #888917 #178951
square
#181789 #89174F #888917 #178951
split-complementary
#181789 #895117 #4F8917
monochromatic
#060520 #0F0E55 #181789 #2120BD #3E3CDE

Accessibility & contrast

On white

13.79
#181789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181789
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181789#FFFFFF#000000##FFFFFF
##1817891.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002787
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181789;
/* rgb */ color: rgb(24, 23, 137);
/* oklch */ color: oklch(31.5% 0.177 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d57ad',
    500: '#181789',
    950: '#000000',
  },
}
SCSS
$custom: #181789;
$custom-light: #6d57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#181789",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 240.526,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.17743,
    "h": 270.4
  },
  "luminance": 0.02613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181789

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

Preview Lab → · Contrast checker → · Palette generator →

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