#18287A#18287A

#18287A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.140 H 268.4°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#18287A
RGBrgb(24, 40, 122)
HSLhsl(230, 67%, 29%)
HSVhsv(230, 80%, 48%)
CMYKcmyk(80.3%, 67.2%, 0%, 52.2%)
CIE-LABlab(20.50, 25.49, -48.36)
CIE-LCHlch(20.50, 54.67, 297.79°)
OKLaboklab(32.47% -0.0038 -0.1399)
OKLCHoklch(32.47% 0.14 268.4)
XYZxyz(4.6471, 3.1164, 18.7652)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18287A #7A6A18
analogous
#18597A #18287A #39187A
triadic
#18287A #7A1828 #287A18
tetradic
#18287A #7A1859 #7A6A18 #187A39
square
#18287A #7A1859 #7A6A18 #187A39
split-complementary
#18287A #7A3918 #597A18
monochromatic
#05081A #0E1747 #18287A #2239AD #3550D7

Accessibility & contrast

On white

12.94
#18287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#18287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18287A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18287A#FFFFFF#000000##FFFFFF
##18287A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #18287a;
/* rgb */ color: rgb(24, 40, 122);
/* oklch */ color: oklch(32.5% 0.140 268.4);
Tailwind
colors: {
  custom: {
    50: '#6761a1',
    500: '#18287a',
    950: '#000000',
  },
}
SCSS
$custom: #18287a;
$custom-light: #6761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#18287a",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 230.204,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32473,
    "c": 0.13998,
    "h": 268.4
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#18287A
secondary
#AF9D3F
accent
#CE3EEA
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18287A

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

Preview Lab → · Contrast checker → · Palette generator →

#18287A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva