#18189E#18189E

#18189E is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.2% C 0.201 H 269.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#18189E
RGBrgb(24, 24, 158)
HSLhsl(240, 74%, 36%)
HSVhsv(240, 85%, 62%)
CMYKcmyk(84.8%, 84.8%, 0%, 38%)
CIE-LABlab(21.26, 47.68, -69.57)
CIE-LCHlch(21.26, 84.35, 304.43°)
OKLaboklab(34.21% -0.0036 -0.2014)
OKLCHoklch(34.21% 0.201 269)
XYZxyz(6.8728, 3.3152, 32.6188)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18189E #9E9E18
analogous
#185B9E #18189E #5B189E
triadic
#18189E #9E1818 #189E18
tetradic
#18189E #9E185B #9E9E18 #189E5B
square
#18189E #9E185B #9E9E18 #189E5B
split-complementary
#18189E #9E5B18 #5B9E18
monochromatic
#080834 #101069 #18189E #2020D3 #4D4DE4

Accessibility & contrast

On white

12.63
#18189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#18189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18189E
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18189E#FFFFFF#000000##FFFFFF
##18189E1.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002C9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #18189e;
/* rgb */ color: rgb(24, 24, 158);
/* oklch */ color: oklch(34.2% 0.201 269.0);
Tailwind
colors: {
  custom: {
    50: '#7259bc',
    500: '#18189e',
    950: '#000000',
  },
}
SCSS
$custom: #18189e;
$custom-light: #7259bc;
$custom-dark: #000000;
JSON
{
  "hex": "#18189e",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 240,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34211,
    "c": 0.20145,
    "h": 269
  },
  "luminance": 0.03316
}

Semantic roles & 50–950 ramp

primary
#18189E
secondary
#C6C64C
accent
#F038F0
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #18189E

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

Preview Lab → · Contrast checker → · Palette generator →

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