#18187F#18187F

#18187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.164 H 271.0°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#18187F
RGBrgb(24, 24, 127)
HSLhsl(240, 68%, 30%)
HSVhsv(240, 81%, 50%)
CMYKcmyk(81.1%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.36, 37.51, -56.72)
CIE-LCHlch(17.36, 68.00, 303.48°)
OKLaboklab(30.38% 0.003 -0.1642)
OKLCHoklch(30.38% 0.164 271)
XYZxyz(4.5328, 2.3793, 20.2949)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18187F #7F7F18
analogous
#184C7F #18187F #4C187F
triadic
#18187F #7F1818 #187F18
tetradic
#18187F #7F184C #7F7F18 #187F4C
square
#18187F #7F184C #7F7F18 #187F4C
split-complementary
#18187F #7F4C18 #4C7F18
monochromatic
#05051A #0E0E4C #18187F #2222B2 #3838D9

Accessibility & contrast

On white

14.23
#18187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#18187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18187F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18187F#FFFFFF#000000##FFFFFF
##18187F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18187f;
/* rgb */ color: rgb(24, 24, 127);
/* oklch */ color: oklch(30.4% 0.164 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a57a5',
    500: '#18187f',
    950: '#000000',
  },
}
SCSS
$custom: #18187f;
$custom-light: #6a57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18187f",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 240,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30379,
    "c": 0.16426,
    "h": 271
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#18187F
secondary
#B3B33F
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18187F

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

Preview Lab → · Contrast checker → · Palette generator →

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