#18288D#18288D

#18288D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.166 H 268.2°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#18288D
RGBrgb(24, 40, 141)
HSLhsl(232, 71%, 32%)
HSVhsv(232, 83%, 55%)
CMYKcmyk(83%, 71.6%, 0%, 44.7%)
CIE-LABlab(22.42, 32.82, -57.17)
CIE-LCHlch(22.42, 65.92, 299.86°)
OKLaboklab(34.45% -0.0052 -0.1656)
OKLCHoklch(34.45% 0.166 268.2)
XYZxyz(5.9415, 3.6342, 25.5825)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18288D #8D7D18
analogous
#18628D #18288D #43188D
triadic
#18288D #8D1828 #288D18
tetradic
#18288D #8D1862 #8D7D18 #188D43
square
#18288D #8D1862 #8D7D18 #188D43
split-complementary
#18288D #8D4318 #628D18
monochromatic
#060A24 #0F1959 #18288D #2137C1 #4156DF

Accessibility & contrast

On white

12.16
#18288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#18288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18288D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18288D#FFFFFF#000000##FFFFFF
##18288D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18288d;
/* rgb */ color: rgb(24, 40, 141);
/* oklch */ color: oklch(34.5% 0.166 268.2);
Tailwind
colors: {
  custom: {
    50: '#6c62af',
    500: '#18288d',
    950: '#000000',
  },
}
SCSS
$custom: #18288d;
$custom-light: #6c62af;
$custom-dark: #000000;
JSON
{
  "hex": "#18288d",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 231.795,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34452,
    "c": 0.16571,
    "h": 268.2
  },
  "luminance": 0.03635
}

Semantic roles & 50–950 ramp

primary
#18288D
secondary
#BFAE42
accent
#D53AEE
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #18288D

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

Preview Lab → · Contrast checker → · Palette generator →

#18288D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva