#18154B#18154B

#18154B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.096 H 278.7°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#18154B
RGBrgb(24, 21, 75)
HSLhsl(243, 56%, 19%)
HSVhsv(243, 72%, 29%)
CMYKcmyk(68%, 72%, 0%, 70.6%)
CIE-LABlab(10.84, 20.36, -33.05)
CIE-LCHlch(10.84, 38.82, 301.63°)
OKLaboklab(23.99% 0.0146 -0.0952)
OKLCHoklch(23.99% 0.096 278.7)
XYZxyz(1.9144, 1.2384, 6.7934)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18154B #484B15
analogous
#152D4B #18154B #33154B
triadic
#18154B #4B1815 #154B18
tetradic
#18154B #4B152D #484B15 #154B33
square
#18154B #4B152D #484B15 #154B33
split-complementary
#18154B #4B3315 #2D4B15
monochromatic
#080718 #09081B #18154B #27227B #3730AB

Accessibility & contrast

On white

16.83
#18154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#18154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18154B
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18154B#FFFFFF#000000##FFFFFF
##18154B1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#00232D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #18154b;
/* rgb */ color: rgb(24, 21, 75);
/* oklch */ color: oklch(24.0% 0.096 278.7);
Tailwind
colors: {
  custom: {
    50: '#5c527e',
    500: '#18154b',
    950: '#000000',
  },
}
SCSS
$custom: #18154b;
$custom-light: #5c527e;
$custom-dark: #000000;
JSON
{
  "hex": "#18154b",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 243.333,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23986,
    "c": 0.09633,
    "h": 278.7
  },
  "luminance": 0.01239
}

Semantic roles & 50–950 ramp

primary
#18154B
secondary
#7F8339
accent
#E048D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18154B

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

Preview Lab → · Contrast checker → · Palette generator →

#18154B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva