#18287E#18287E

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

Color values

HEX#18287E
RGBrgb(24, 40, 126)
HSLhsl(231, 68%, 29%)
HSVhsv(231, 81%, 49%)
CMYKcmyk(81%, 68.3%, 0%, 50.6%)
CIE-LABlab(20.90, 27.06, -50.26)
CIE-LCHlch(20.90, 57.08, 298.30°)
OKLaboklab(32.88% -0.004 -0.1455)
OKLCHoklch(32.88% 0.146 268.4)
XYZxyz(4.9001, 3.2176, 20.0974)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18287E #7E6E18
analogous
#185B7E #18287E #3B187E
triadic
#18287E #7E1828 #287E18
tetradic
#18287E #7E185B #7E6E18 #187E3B
square
#18287E #7E185B #7E6E18 #187E3B
split-complementary
#18287E #7E3B18 #5B7E18
monochromatic
#05081A #0E184B #18287E #2238B1 #3751D9

Accessibility & contrast

On white

12.78
#18287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18287E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18287E#FFFFFF#000000##FFFFFF
##18287E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18287e;
/* rgb */ color: rgb(24, 40, 126);
/* oklch */ color: oklch(32.9% 0.146 268.4);
Tailwind
colors: {
  custom: {
    50: '#6862a4',
    500: '#18287e',
    950: '#000000',
  },
}
SCSS
$custom: #18287e;
$custom-light: #6862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#18287e",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 230.588,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32878,
    "c": 0.14555,
    "h": 268.4
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18287E

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

Preview Lab → · Contrast checker → · Palette generator →

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