#18189F#18189F

#18189F is a dark, highly saturated blue. Relative luminance 0.034; OKLCH L 34.3% C 0.203 H 268.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#18189F
RGBrgb(24, 24, 159)
HSLhsl(240, 74%, 36%)
HSVhsv(240, 85%, 62%)
CMYKcmyk(84.9%, 84.9%, 0%, 37.6%)
CIE-LABlab(21.39, 48.00, -69.97)
CIE-LCHlch(21.39, 84.85, 304.45°)
OKLaboklab(34.34% -0.0038 -0.2026)
OKLCHoklch(34.34% 0.203 268.9)
XYZxyz(6.9592, 3.3498, 33.0740)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18189F #9F9F18
analogous
#185B9F #18189F #5B189F
triadic
#18189F #9F1818 #189F18
tetradic
#18189F #9F185B #9F9F18 #189F5B
square
#18189F #9F185B #9F9F18 #189F5B
split-complementary
#18189F #9F5B18 #5B9F18
monochromatic
#080835 #10106A #18189F #2020D4 #4D4DE4

Accessibility & contrast

On white

12.57
#18189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#18189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18189F
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18189F#FFFFFF#000000##FFFFFF
##18189F1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA3
Deuteranopia (green-blind)
#002C9D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18189f;
/* rgb */ color: rgb(24, 24, 159);
/* oklch */ color: oklch(34.3% 0.203 268.9);
Tailwind
colors: {
  custom: {
    50: '#735abd',
    500: '#18189f',
    950: '#000000',
  },
}
SCSS
$custom: #18189f;
$custom-light: #735abd;
$custom-dark: #000000;
JSON
{
  "hex": "#18189f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 240,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.34337,
    "c": 0.2026,
    "h": 268.9
  },
  "luminance": 0.03351
}

Semantic roles & 50–950 ramp

primary
#18189F
secondary
#C6C64D
accent
#F037F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #18189F

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

Preview Lab → · Contrast checker → · Palette generator →

#18189F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva