#18287F#18287F

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

Color values

HEX#18287F
RGBrgb(24, 40, 127)
HSLhsl(231, 68%, 30%)
HSVhsv(231, 81%, 50%)
CMYKcmyk(81.1%, 68.5%, 0%, 50.2%)
CIE-LABlab(20.99, 27.45, -50.73)
CIE-LCHlch(20.99, 57.68, 298.42°)
OKLaboklab(32.98% -0.0041 -0.1469)
OKLCHoklch(32.98% 0.147 268.4)
XYZxyz(4.9649, 3.2435, 20.4389)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18287F #7F6F18
analogous
#185B7F #18287F #3C187F
triadic
#18287F #7F1828 #287F18
tetradic
#18287F #7F185B #7F6F18 #187F3C
square
#18287F #7F185B #7F6F18 #187F3C
split-complementary
#18287F #7F3C18 #5B7F18
monochromatic
#05081A #0E184C #18287F #2238B2 #3851D9

Accessibility & contrast

On white

12.74
#18287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#18287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18287F
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18287F#FFFFFF#000000##FFFFFF
##18287F1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18287f;
/* rgb */ color: rgb(24, 40, 127);
/* oklch */ color: oklch(33.0% 0.147 268.4);
Tailwind
colors: {
  custom: {
    50: '#6862a5',
    500: '#18287f',
    950: '#000000',
  },
}
SCSS
$custom: #18287f;
$custom-light: #6862a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18287f",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 230.68,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32981,
    "c": 0.14692,
    "h": 268.4
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#18287F
secondary
#B3A13F
accent
#D03DEB
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #18287F

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

Preview Lab → · Contrast checker → · Palette generator →

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