#18287B#18287B

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

Color values

HEX#18287B
RGBrgb(24, 40, 123)
HSLhsl(230, 67%, 29%)
HSVhsv(230, 80%, 48%)
CMYKcmyk(80.5%, 67.5%, 0%, 51.8%)
CIE-LABlab(20.60, 25.88, -48.84)
CIE-LCHlch(20.60, 55.27, 297.92°)
OKLaboklab(32.57% -0.0039 -0.1413)
OKLCHoklch(32.57% 0.141 268.4)
XYZxyz(4.7094, 3.1413, 19.0932)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18287B #7B6B18
analogous
#185A7B #18287B #3A187B
triadic
#18287B #7B1828 #287B18
tetradic
#18287B #7B185A #7B6B18 #187B3A
square
#18287B #7B185A #7B6B18 #187B3A
split-complementary
#18287B #7B3A18 #5A7B18
monochromatic
#05081A #0E1748 #18287B #2239AE #3650D8

Accessibility & contrast

On white

12.90
#18287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#18287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18287B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18287B#FFFFFF#000000##FFFFFF
##18287B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18287b;
/* rgb */ color: rgb(24, 40, 123);
/* oklch */ color: oklch(32.6% 0.141 268.4);
Tailwind
colors: {
  custom: {
    50: '#6761a2',
    500: '#18287b',
    950: '#000000',
  },
}
SCSS
$custom: #18287b;
$custom-light: #6761a2;
$custom-dark: #000000;
JSON
{
  "hex": "#18287b",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 230.303,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32573,
    "c": 0.14138,
    "h": 268.4
  },
  "luminance": 0.03142
}

Semantic roles & 50–950 ramp

primary
#18287B
secondary
#B09D3F
accent
#CE3EEA
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18287B

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

Preview Lab → · Contrast checker → · Palette generator →

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