#18327F#18327F

#18327F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 265.5°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#18327F
RGBrgb(24, 50, 127)
HSLhsl(225, 68%, 30%)
HSVhsv(225, 81%, 50%)
CMYKcmyk(81.1%, 60.6%, 0%, 50.2%)
CIE-LABlab(23.69, 20.48, -46.31)
CIE-LCHlch(23.69, 50.64, 293.86°)
OKLaboklab(34.98% -0.0104 -0.1338)
OKLCHoklch(34.98% 0.134 265.5)
XYZxyz(5.3467, 4.0071, 20.5662)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18327F #7F6518
analogous
#18667F #18327F #31187F
triadic
#18327F #7F1832 #327F18
tetradic
#18327F #7F1866 #7F6518 #187F31
square
#18327F #7F1866 #7F6518 #187F31
split-complementary
#18327F #7F3118 #667F18
monochromatic
#050A1A #0E1E4C #18327F #2246B2 #3861D9

Accessibility & contrast

On white

11.66
#18327F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#18327F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18327F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18327F#FFFFFF#000000##FFFFFF
##18327F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #18327f;
/* rgb */ color: rgb(24, 50, 127);
/* oklch */ color: oklch(35.0% 0.134 265.5);
Tailwind
colors: {
  custom: {
    50: '#6769a5',
    500: '#18327f',
    950: '#000000',
  },
}
SCSS
$custom: #18327f;
$custom-light: #6769a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18327f",
  "rgb": {
    "r": 24,
    "g": 50,
    "b": 127
  },
  "hsl": {
    "h": 224.854,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3498,
    "c": 0.13421,
    "h": 265.5
  },
  "luminance": 0.04008
}

Semantic roles & 50–950 ramp

primary
#18327F
secondary
#B3963F
accent
#BF3DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #18327F

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

Preview Lab → · Contrast checker → · Palette generator →

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