#181889#181889

#181889 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.177 H 270.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#181889
RGBrgb(24, 24, 137)
HSLhsl(240, 70%, 32%)
HSVhsv(240, 82%, 54%)
CMYKcmyk(82.5%, 82.5%, 0%, 46.3%)
CIE-LABlab(18.60, 40.90, -60.99)
CIE-LCHlch(18.60, 73.44, 303.84°)
OKLaboklab(31.6% 0.0009 -0.1766)
OKLCHoklch(31.6% 0.177 270.3)
XYZxyz(5.2171, 2.6530, 23.8992)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181889 #898918
analogous
#185189 #181889 #511889
triadic
#181889 #891818 #188918
tetradic
#181889 #891851 #898918 #188951
square
#181889 #891851 #898918 #188951
split-complementary
#181889 #895118 #518918
monochromatic
#060621 #0F0F55 #181889 #2121BD #3E3EDD

Accessibility & contrast

On white

13.72
#181889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#181889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181889
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181889#FFFFFF#000000##FFFFFF
##1818891.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181889;
/* rgb */ color: rgb(24, 24, 137);
/* oklch */ color: oklch(31.6% 0.177 270.3);
Tailwind
colors: {
  custom: {
    50: '#6d58ad',
    500: '#181889',
    950: '#000000',
  },
}
SCSS
$custom: #181889;
$custom-light: #6d58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#181889",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 240,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.1766,
    "h": 270.3
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#181889
secondary
#BDBD40
accent
#ED3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181889

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

Preview Lab → · Contrast checker → · Palette generator →

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