#18287C#18287C

#18287C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.143 H 268.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#18287C
RGBrgb(24, 40, 124)
HSLhsl(230, 68%, 29%)
HSVhsv(230, 81%, 49%)
CMYKcmyk(80.6%, 67.7%, 0%, 51.4%)
CIE-LABlab(20.70, 26.27, -49.31)
CIE-LCHlch(20.70, 55.88, 298.05°)
OKLaboklab(32.67% -0.0039 -0.1427)
OKLCHoklch(32.67% 0.143 268.4)
XYZxyz(4.7723, 3.1665, 19.4245)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18287C #7C6C18
analogous
#185A7C #18287C #3A187C
triadic
#18287C #7C1828 #287C18
tetradic
#18287C #7C185A #7C6C18 #187C3A
square
#18287C #7C185A #7C6C18 #187C3A
split-complementary
#18287C #7C3A18 #5A7C18
monochromatic
#05081A #0E1749 #18287C #2239AF #3650D8

Accessibility & contrast

On white

12.86
#18287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18287C
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18287C#FFFFFF#000000##FFFFFF
##18287C1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18287c;
/* rgb */ color: rgb(24, 40, 124);
/* oklch */ color: oklch(32.7% 0.143 268.4);
Tailwind
colors: {
  custom: {
    50: '#6762a3',
    500: '#18287c',
    950: '#000000',
  },
}
SCSS
$custom: #18287c;
$custom-light: #6762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18287c",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 230.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32675,
    "c": 0.14277,
    "h": 268.4
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#18287C
secondary
#B19E3F
accent
#CF3DEA
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18287C

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

Preview Lab → · Contrast checker → · Palette generator →

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