#18286C#18286C

#18286C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.120 H 268.3°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#18286C
RGBrgb(24, 40, 108)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 42%)
CMYKcmyk(77.8%, 63%, 0%, 57.6%)
CIE-LABlab(19.20, 19.86, -41.49)
CIE-LCHlch(19.20, 46.00, 295.58°)
OKLaboklab(31.11% -0.0035 -0.1198)
OKLCHoklch(31.11% 0.12 268.3)
XYZxyz(3.8413, 2.7941, 14.5213)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18286C #6C5C18
analogous
#18526C #18286C #32186C
triadic
#18286C #6C1828 #286C18
tetradic
#18286C #6C1852 #6C5C18 #186C32
square
#18286C #6C1852 #6C5C18 #186C32
split-complementary
#18286C #6C3218 #526C18
monochromatic
#060919 #0D153A #18286C #233B9E #2E4DD0

Accessibility & contrast

On white

13.47
#18286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#18286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18286C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18286C#FFFFFF#000000##FFFFFF
##18286C1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18286c;
/* rgb */ color: rgb(24, 40, 108);
/* oklch */ color: oklch(31.1% 0.120 268.3);
Tailwind
colors: {
  custom: {
    50: '#636197',
    500: '#18286c',
    950: '#000000',
  },
}
SCSS
$custom: #18286c;
$custom-light: #636197;
$custom-dark: #000000;
JSON
{
  "hex": "#18286c",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 228.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31105,
    "c": 0.11985,
    "h": 268.3
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#18286C
secondary
#A28F3E
accent
#C741E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #18286C

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

Preview Lab → · Contrast checker → · Palette generator →

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