#181989#181989

#181989 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.176 H 270.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#181989
RGBrgb(24, 25, 137)
HSLhsl(239, 70%, 32%)
HSVhsv(239, 82%, 54%)
CMYKcmyk(82.5%, 81.8%, 0%, 46.3%)
CIE-LABlab(18.78, 40.37, -60.69)
CIE-LCHlch(18.78, 72.89, 303.63°)
OKLaboklab(31.73% 0.0006 -0.1757)
OKLCHoklch(31.73% 0.176 270.2)
XYZxyz(5.2381, 2.6950, 23.9062)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181989 #898818
analogous
#185289 #181989 #501889
triadic
#181989 #891819 #198918
tetradic
#181989 #891852 #898818 #188950
square
#181989 #891852 #898818 #188950
split-complementary
#181989 #895018 #528918
monochromatic
#060621 #0F0F55 #181989 #2123BD #3E40DD

Accessibility & contrast

On white

13.64
#181989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181989
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181989#FFFFFF#000000##FFFFFF
##1819891.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181989;
/* rgb */ color: rgb(24, 25, 137);
/* oklch */ color: oklch(31.7% 0.176 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c58ad',
    500: '#181989',
    950: '#000000',
  },
}
SCSS
$custom: #181989;
$custom-light: #6c58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#181989",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 239.469,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31725,
    "c": 0.17575,
    "h": 270.2
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#181989
secondary
#BDBB40
accent
#EB3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181989

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

Preview Lab → · Contrast checker → · Palette generator →

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