#18145E#18145E

#18145E is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.125 H 275.6°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#18145E
RGBrgb(24, 20, 94)
HSLhsl(243, 65%, 22%)
HSVhsv(243, 79%, 37%)
CMYKcmyk(74.5%, 78.7%, 0%, 63.1%)
CIE-LABlab(12.62, 28.17, -43.05)
CIE-LCHlch(12.62, 51.45, 303.20°)
OKLaboklab(25.89% 0.0121 -0.1244)
OKLCHoklch(25.89% 0.125 275.6)
XYZxyz(2.6466, 1.5024, 10.7380)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18145E #5A5E14
analogous
#14355E #18145E #3D145E
triadic
#18145E #5E1814 #145E18
tetradic
#18145E #5E1435 #5A5E14 #145E3D
square
#18145E #5E1435 #5A5E14 #145E3D
split-complementary
#18145E #5E3D14 #355E14
monochromatic
#060519 #0B092C #18145E #251F90 #3229C3

Accessibility & contrast

On white

16.15
#18145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#18145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18145E
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18145E#FFFFFF#000000##FFFFFF
##18145E1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#001D5D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #18145e;
/* rgb */ color: rgb(24, 20, 94);
/* oklch */ color: oklch(25.9% 0.125 275.6);
Tailwind
colors: {
  custom: {
    50: '#61528d',
    500: '#18145e',
    950: '#000000',
  },
}
SCSS
$custom: #18145e;
$custom-light: #61528d;
$custom-dark: #000000;
JSON
{
  "hex": "#18145e",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 243.243,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.25885,
    "c": 0.12504,
    "h": 275.6
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#18145E
secondary
#919638
accent
#E840DF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #18145E

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

Preview Lab → · Contrast checker → · Palette generator →

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