#181B89#181B89

#181B89 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.174 H 270.0°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#181B89
RGBrgb(24, 27, 137)
HSLhsl(238, 70%, 32%)
HSVhsv(238, 82%, 54%)
CMYKcmyk(82.5%, 80.3%, 0%, 46.3%)
CIE-LABlab(19.16, 39.28, -60.07)
CIE-LCHlch(19.16, 71.77, 303.18°)
OKLaboklab(31.99% 0.0001 -0.174)
OKLCHoklch(31.99% 0.174 270)
XYZxyz(5.2824, 2.7836, 23.9209)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B89 #898618
analogous
#185489 #181B89 #4E1889
triadic
#181B89 #89181B #1B8918
tetradic
#181B89 #891854 #898618 #18894E
square
#181B89 #891854 #898618 #18894E
split-complementary
#181B89 #894E18 #548918
monochromatic
#060621 #0F1155 #181B89 #2125BD #3E42DD

Accessibility & contrast

On white

13.49
#181B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#181B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B89
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B89#FFFFFF#000000##FFFFFF
##181B891.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348C
Deuteranopia (green-blind)
#002987
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181b89;
/* rgb */ color: rgb(24, 27, 137);
/* oklch */ color: oklch(32.0% 0.174 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c59ad',
    500: '#181b89',
    950: '#000000',
  },
}
SCSS
$custom: #181b89;
$custom-light: #6c59ad;
$custom-dark: #000000;
JSON
{
  "hex": "#181b89",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 238.407,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31989,
    "c": 0.17397,
    "h": 270
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#181B89
secondary
#BDB940
accent
#E83BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181B89

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

Preview Lab → · Contrast checker → · Palette generator →

#181B89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva