#18288F#18288F

#18288F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.168 H 268.1°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#18288F
RGBrgb(24, 40, 143)
HSLhsl(232, 71%, 33%)
HSVhsv(232, 83%, 56%)
CMYKcmyk(83.2%, 72%, 0%, 43.9%)
CIE-LABlab(22.63, 33.57, -58.06)
CIE-LCHlch(22.63, 67.07, 300.04°)
OKLaboklab(34.67% -0.0054 -0.1682)
OKLCHoklch(34.67% 0.168 268.1)
XYZxyz(6.0917, 3.6942, 26.3733)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18288F #8F7F18
analogous
#18638F #18288F #44188F
triadic
#18288F #8F1828 #288F18
tetradic
#18288F #8F1863 #8F7F18 #188F44
square
#18288F #8F1863 #8F7F18 #188F44
split-complementary
#18288F #8F4418 #638F18
monochromatic
#060B26 #0F195B #18288F #2137C3 #4257DF

Accessibility & contrast

On white

12.08
#18288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#18288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18288F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18288F#FFFFFF#000000##FFFFFF
##18288F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #18288f;
/* rgb */ color: rgb(24, 40, 143);
/* oklch */ color: oklch(34.7% 0.168 268.1);
Tailwind
colors: {
  custom: {
    50: '#6d62b1',
    500: '#18288f',
    950: '#000000',
  },
}
SCSS
$custom: #18288f;
$custom-light: #6d62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#18288f",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 231.933,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34667,
    "c": 0.16833,
    "h": 268.1
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#18288F
secondary
#C0AF43
accent
#D63AEE
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #18288F

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

Preview Lab → · Contrast checker → · Palette generator →

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