#18145B#18145B

#18145B is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.5% C 0.121 H 276.0°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#18145B
RGBrgb(24, 20, 91)
HSLhsl(243, 64%, 22%)
HSVhsv(243, 78%, 36%)
CMYKcmyk(73.6%, 78%, 0%, 64.3%)
CIE-LABlab(12.28, 27.07, -41.60)
CIE-LCHlch(12.28, 49.63, 303.06°)
OKLaboklab(25.54% 0.0127 -0.1202)
OKLCHoklch(25.54% 0.121 276)
XYZxyz(2.5146, 1.4496, 10.0428)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18145B #575B14
analogous
#14345B #18145B #3C145B
triadic
#18145B #5B1814 #145B18
tetradic
#18145B #5B1434 #575B14 #145B3C
square
#18145B #5B1434 #575B14 #145B3C
split-complementary
#18145B #5B3C14 #345B14
monochromatic
#070619 #0B0929 #18145B #251F8D #322ABF

Accessibility & contrast

On white

16.28
#18145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18145B
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18145B#FFFFFF#000000##FFFFFF
##18145B1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18145b;
/* rgb */ color: rgb(24, 20, 91);
/* oklch */ color: oklch(25.5% 0.121 276.0);
Tailwind
colors: {
  custom: {
    50: '#60528a',
    500: '#18145b',
    950: '#000000',
  },
}
SCSS
$custom: #18145b;
$custom-light: #60528a;
$custom-dark: #000000;
JSON
{
  "hex": "#18145b",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 243.38,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25542,
    "c": 0.12088,
    "h": 276
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18145B

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

Preview Lab → · Contrast checker → · Palette generator →

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