#18345C#18345C

#18345C is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.6% C 0.079 H 257.6°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#18345C
RGBrgb(24, 52, 92)
HSLhsl(215, 59%, 23%)
HSVhsv(215, 74%, 36%)
CMYKcmyk(73.9%, 43.5%, 0%, 63.9%)
CIE-LABlab(21.66, 4.57, -27.06)
CIE-LCHlch(21.66, 27.45, 279.59°)
OKLaboklab(32.59% -0.017 -0.0772)
OKLCHoklch(32.59% 0.079 257.6)
XYZxyz(3.5357, 3.4225, 10.5974)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18345C #5C4018
analogous
#18565C #18345C #1E185C
triadic
#18345C #5C1834 #345C18
tetradic
#18345C #5C1856 #5C4018 #185C1E
square
#18345C #5C1856 #5C4018 #185C1E
split-complementary
#18345C #5C1E18 #565C18
monochromatic
#060E18 #0B192B #18345C #254F8D #316BBD

Accessibility & contrast

On white

12.47
#18345C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#18345C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18345C
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18345C#FFFFFF#000000##FFFFFF
##18345C1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22375E
Deuteranopia (green-blind)
#17315B
Tritanopia (blue-blind)
#003D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18345c;
/* rgb */ color: rgb(24, 52, 92);
/* oklch */ color: oklch(32.6% 0.079 257.6);
Tailwind
colors: {
  custom: {
    50: '#5e6b8a',
    500: '#18345c',
    950: '#000000',
  },
}
SCSS
$custom: #18345c;
$custom-light: #5e6b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#18345c",
  "rgb": {
    "r": 24,
    "g": 52,
    "b": 92
  },
  "hsl": {
    "h": 215.294,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32591,
    "c": 0.07901,
    "h": 257.6
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#18345C
secondary
#936F3D
accent
#A246E2
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18345C

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

Preview Lab → · Contrast checker → · Palette generator →

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