#18278D#18278D

#18278D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.167 H 268.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#18278D
RGBrgb(24, 39, 141)
HSLhsl(232, 71%, 32%)
HSVhsv(232, 83%, 55%)
CMYKcmyk(83%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.19, 33.47, -57.55)
CIE-LCHlch(22.19, 66.58, 300.18°)
OKLaboklab(34.28% -0.0048 -0.1668)
OKLCHoklch(34.28% 0.167 268.3)
XYZxyz(5.9083, 3.5676, 25.5714)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18278D #8D7E18
analogous
#18618D #18278D #44188D
triadic
#18278D #8D1827 #278D18
tetradic
#18278D #8D1861 #8D7E18 #188D44
square
#18278D #8D1861 #8D7E18 #188D44
split-complementary
#18278D #8D4418 #618D18
monochromatic
#060A24 #0F1959 #18278D #2135C1 #4155DF

Accessibility & contrast

On white

12.25
#18278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#18278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18278D
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18278D#FFFFFF#000000##FFFFFF
##18278D1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #18278d;
/* rgb */ color: rgb(24, 39, 141);
/* oklch */ color: oklch(34.3% 0.167 268.3);
Tailwind
colors: {
  custom: {
    50: '#6c61af',
    500: '#18278d',
    950: '#000000',
  },
}
SCSS
$custom: #18278d;
$custom-light: #6c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#18278d",
  "rgb": {
    "r": 24,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 232.308,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34282,
    "c": 0.16683,
    "h": 268.3
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#18278D
secondary
#BFAF42
accent
#D73AEE
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #18278D

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

Preview Lab → · Contrast checker → · Palette generator →

#18278D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva