#18154E#18154E

#18154E is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.101 H 278.1°. Best body text is #FFFFFF at 16.72:1 contrast (WCAG AA passes).

Color values

HEX#18154E
RGBrgb(24, 21, 78)
HSLhsl(243, 58%, 19%)
HSVhsv(243, 73%, 31%)
CMYKcmyk(69.2%, 73.1%, 0%, 69.4%)
CIE-LABlab(11.14, 21.52, -34.63)
CIE-LCHlch(11.14, 40.77, 301.85°)
OKLaboklab(24.3% 0.0143 -0.0998)
OKLCHoklch(24.3% 0.101 278.1)
XYZxyz(2.0196, 1.2804, 7.3470)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18154E #4B4E15
analogous
#152F4E #18154E #35154E
triadic
#18154E #4E1815 #154E18
tetradic
#18154E #4E152F #4B4E15 #154E35
square
#18154E #4E152F #4B4E15 #154E35
split-complementary
#18154E #4E3515 #2F4E15
monochromatic
#070618 #09081E #18154E #27227E #362FAE

Accessibility & contrast

On white

16.72
#18154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#18154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18154E
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18154E#FFFFFF#000000##FFFFFF
##18154E1.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002050
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#00242F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #18154e;
/* rgb */ color: rgb(24, 21, 78);
/* oklch */ color: oklch(24.3% 0.101 278.1);
Tailwind
colors: {
  custom: {
    50: '#5d5280',
    500: '#18154e',
    950: '#000000',
  },
}
SCSS
$custom: #18154e;
$custom-light: #5d5280;
$custom-dark: #000000;
JSON
{
  "hex": "#18154e",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 243.158,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24296,
    "c": 0.10086,
    "h": 278.1
  },
  "luminance": 0.01281
}

Semantic roles & 50–950 ramp

primary
#18154E
secondary
#828639
accent
#E147D9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #18154E

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

Preview Lab → · Contrast checker → · Palette generator →

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