#18286F#18286F

#18286F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.124 H 268.4°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#18286F
RGBrgb(24, 40, 111)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 44%)
CMYKcmyk(78.4%, 64%, 0%, 56.5%)
CIE-LABlab(19.47, 21.08, -43.00)
CIE-LCHlch(19.47, 47.89, 296.12°)
OKLaboklab(31.39% -0.0035 -0.1242)
OKLCHoklch(31.39% 0.124 268.4)
XYZxyz(4.0037, 2.8590, 15.3767)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18286F #6F5F18
analogous
#18546F #18286F #34186F
triadic
#18286F #6F1828 #286F18
tetradic
#18286F #6F1854 #6F5F18 #186F34
square
#18286F #6F1854 #6F5F18 #186F34
split-complementary
#18286F #6F3418 #546F18
monochromatic
#050919 #0D163D #18286F #233AA1 #2F4DD2

Accessibility & contrast

On white

13.36
#18286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#18286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18286F
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18286F#FFFFFF#000000##FFFFFF
##18286F1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18286f;
/* rgb */ color: rgb(24, 40, 111);
/* oklch */ color: oklch(31.4% 0.124 268.4);
Tailwind
colors: {
  custom: {
    50: '#646199',
    500: '#18286f',
    950: '#000000',
  },
}
SCSS
$custom: #18286f;
$custom-light: #646199;
$custom-dark: #000000;
JSON
{
  "hex": "#18286f",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 228.966,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31391,
    "c": 0.12426,
    "h": 268.4
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#18286F
secondary
#A5923E
accent
#C940E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #18286F

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

Preview Lab → · Contrast checker → · Palette generator →

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