#18286D#18286D

#18286D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.121 H 268.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#18286D
RGBrgb(24, 40, 109)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 43%)
CMYKcmyk(78%, 63.3%, 0%, 57.3%)
CIE-LABlab(19.29, 20.27, -42.00)
CIE-LCHlch(19.29, 46.63, 295.77°)
OKLaboklab(31.2% -0.0035 -0.1213)
OKLCHoklch(31.2% 0.121 268.3)
XYZxyz(3.8948, 2.8155, 14.8032)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18286D #6D5D18
analogous
#18526D #18286D #32186D
triadic
#18286D #6D1828 #286D18
tetradic
#18286D #6D1852 #6D5D18 #186D32
square
#18286D #6D1852 #6D5D18 #186D32
split-complementary
#18286D #6D3218 #526D18
monochromatic
#060919 #0D163B #18286D #233A9F #2E4DD1

Accessibility & contrast

On white

13.43
#18286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18286D
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18286D#FFFFFF#000000##FFFFFF
##18286D1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18286d;
/* rgb */ color: rgb(24, 40, 109);
/* oklch */ color: oklch(31.2% 0.121 268.3);
Tailwind
colors: {
  custom: {
    50: '#636197',
    500: '#18286d',
    950: '#000000',
  },
}
SCSS
$custom: #18286d;
$custom-light: #636197;
$custom-dark: #000000;
JSON
{
  "hex": "#18286d",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 228.706,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.312,
    "c": 0.12133,
    "h": 268.3
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#18286D
secondary
#A3903E
accent
#C841E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #18286D

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

Preview Lab → · Contrast checker → · Palette generator →

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