#18154C#18154C

#18154C is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.098 H 278.5°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#18154C
RGBrgb(24, 21, 76)
HSLhsl(243, 57%, 19%)
HSVhsv(243, 72%, 30%)
CMYKcmyk(68.4%, 72.4%, 0%, 70.2%)
CIE-LABlab(10.94, 20.75, -33.58)
CIE-LCHlch(10.94, 39.47, 301.71°)
OKLaboklab(24.09% 0.0145 -0.0968)
OKLCHoklch(24.09% 0.098 278.5)
XYZxyz(1.9489, 1.2522, 6.9751)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18154C #494C15
analogous
#152E4C #18154C #34154C
triadic
#18154C #4C1815 #154C18
tetradic
#18154C #4C152E #494C15 #154C34
square
#18154C #4C152E #494C15 #154C34
split-complementary
#18154C #4C3415 #2E4C15
monochromatic
#080718 #09081C #18154C #27227C #362FAC

Accessibility & contrast

On white

16.79
#18154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18154C
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18154C#FFFFFF#000000##FFFFFF
##18154C1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #18154c;
/* rgb */ color: rgb(24, 21, 76);
/* oklch */ color: oklch(24.1% 0.098 278.5);
Tailwind
colors: {
  custom: {
    50: '#5c527f',
    500: '#18154c',
    950: '#000000',
  },
}
SCSS
$custom: #18154c;
$custom-light: #5c527f;
$custom-dark: #000000;
JSON
{
  "hex": "#18154c",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 243.273,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24088,
    "c": 0.09784,
    "h": 278.5
  },
  "luminance": 0.01252
}

Semantic roles & 50–950 ramp

primary
#18154C
secondary
#808439
accent
#E048D8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18154C

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

Preview Lab → · Contrast checker → · Palette generator →

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