#18145C#18145C

#18145C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.7% C 0.122 H 275.9°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#18145C
RGBrgb(24, 20, 92)
HSLhsl(243, 64%, 22%)
HSVhsv(243, 78%, 36%)
CMYKcmyk(73.9%, 78.3%, 0%, 63.9%)
CIE-LABlab(12.40, 27.44, -42.08)
CIE-LCHlch(12.40, 50.24, 303.10°)
OKLaboklab(25.66% 0.0125 -0.1216)
OKLCHoklch(25.66% 0.122 275.9)
XYZxyz(2.5580, 1.4670, 10.2715)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18145C #585C14
analogous
#14345C #18145C #3C145C
triadic
#18145C #5C1814 #145C18
tetradic
#18145C #5C1434 #585C14 #145C3C
square
#18145C #5C1434 #585C14 #145C3C
split-complementary
#18145C #5C3C14 #345C14
monochromatic
#070519 #0B092A #18145C #251F8E #322AC1

Accessibility & contrast

On white

16.24
#18145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#18145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18145C
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18145C#FFFFFF#000000##FFFFFF
##18145C1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002836
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #18145c;
/* rgb */ color: rgb(24, 20, 92);
/* oklch */ color: oklch(25.7% 0.122 275.9);
Tailwind
colors: {
  custom: {
    50: '#61528b',
    500: '#18145c',
    950: '#000000',
  },
}
SCSS
$custom: #18145c;
$custom-light: #61528b;
$custom-dark: #000000;
JSON
{
  "hex": "#18145c",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 243.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.25656,
    "c": 0.12227,
    "h": 275.9
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#18145C
secondary
#8F9438
accent
#E741DE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #18145C

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

Preview Lab → · Contrast checker → · Palette generator →

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