#18188A#18188A

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

Color values

HEX#18188A
RGBrgb(24, 24, 138)
HSLhsl(240, 70%, 32%)
HSVhsv(240, 83%, 54%)
CMYKcmyk(82.6%, 82.6%, 0%, 45.9%)
CIE-LABlab(18.72, 41.23, -61.41)
CIE-LCHlch(18.72, 73.97, 303.88°)
OKLaboklab(31.72% 0.0006 -0.1778)
OKLCHoklch(31.72% 0.178 270.2)
XYZxyz(5.2892, 2.6818, 24.2787)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18188A #8A8A18
analogous
#18518A #18188A #51188A
triadic
#18188A #8A1818 #188A18
tetradic
#18188A #8A1851 #8A8A18 #188A51
square
#18188A #8A1851 #8A8A18 #188A51
split-complementary
#18188A #8A5118 #518A18
monochromatic
#060622 #0F0F56 #18188A #2121BE #3F3FDE

Accessibility & contrast

On white

13.67
#18188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#18188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18188A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18188A#FFFFFF#000000##FFFFFF
##18188A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18188a;
/* rgb */ color: rgb(24, 24, 138);
/* oklch */ color: oklch(31.7% 0.178 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d58ad',
    500: '#18188a',
    950: '#000000',
  },
}
SCSS
$custom: #18188a;
$custom-light: #6d58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#18188a",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 240,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.31721,
    "c": 0.17782,
    "h": 270.2
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18188A

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

Preview Lab → · Contrast checker → · Palette generator →

#18188A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva