#18345F#18345F

#18345F is a dark, moderate blue. Relative luminance 0.035; OKLCH L 32.8% C 0.084 H 258.8°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#18345F
RGBrgb(24, 52, 95)
HSLhsl(216, 60%, 23%)
HSVhsv(216, 75%, 37%)
CMYKcmyk(74.7%, 45.3%, 0%, 62.7%)
CIE-LABlab(21.86, 5.81, -28.72)
CIE-LCHlch(21.86, 29.30, 281.44°)
OKLaboklab(32.81% -0.0163 -0.082)
OKLCHoklch(32.81% 0.084 258.8)
XYZxyz(3.6695, 3.4760, 11.3018)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18345F #5F4318
analogous
#18575F #18345F #1F185F
triadic
#18345F #5F1834 #345F18
tetradic
#18345F #5F1857 #5F4318 #185F1F
square
#18345F #5F1857 #5F4318 #185F1F
split-complementary
#18345F #5F1F18 #575F18
monochromatic
#060D18 #0C192E #18345F #244F90 #3169C1

Accessibility & contrast

On white

12.39
#18345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#18345F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18345F
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18345F#FFFFFF#000000##FFFFFF
##18345F1.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203861
Deuteranopia (green-blind)
#14315E
Tritanopia (blue-blind)
#003E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #18345f;
/* rgb */ color: rgb(24, 52, 95);
/* oklch */ color: oklch(32.8% 0.084 258.8);
Tailwind
colors: {
  custom: {
    50: '#5f6b8d',
    500: '#18345f',
    950: '#000000',
  },
}
SCSS
$custom: #18345f;
$custom-light: #5f6b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#18345f",
  "rgb": {
    "r": 24,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 216.338,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32806,
    "c": 0.08363,
    "h": 258.8
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#18345F
secondary
#95733D
accent
#A545E3
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #18345F

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

Preview Lab → · Contrast checker → · Palette generator →

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