#18286E#18286E

#18286E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.3% C 0.123 H 268.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#18286E
RGBrgb(24, 40, 110)
HSLhsl(229, 64%, 26%)
HSVhsv(229, 78%, 43%)
CMYKcmyk(78.2%, 63.6%, 0%, 56.9%)
CIE-LABlab(19.38, 20.68, -42.50)
CIE-LCHlch(19.38, 47.26, 295.95°)
OKLaboklab(31.3% -0.0035 -0.1227)
OKLCHoklch(31.3% 0.123 268.4)
XYZxyz(3.9490, 2.8371, 15.0883)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18286E #6E5E18
analogous
#18536E #18286E #33186E
triadic
#18286E #6E1828 #286E18
tetradic
#18286E #6E1853 #6E5E18 #186E33
square
#18286E #6E1853 #6E5E18 #186E33
split-complementary
#18286E #6E3318 #536E18
monochromatic
#050919 #0D163C #18286E #233AA0 #2F4DD2

Accessibility & contrast

On white

13.40
#18286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18286E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18286E#FFFFFF#000000##FFFFFF
##18286E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #18286e;
/* rgb */ color: rgb(24, 40, 110);
/* oklch */ color: oklch(31.3% 0.123 268.4);
Tailwind
colors: {
  custom: {
    50: '#636198',
    500: '#18286e',
    950: '#000000',
  },
}
SCSS
$custom: #18286e;
$custom-light: #636198;
$custom-dark: #000000;
JSON
{
  "hex": "#18286e",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 228.837,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31295,
    "c": 0.1228,
    "h": 268.4
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18286E

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

Preview Lab → · Contrast checker → · Palette generator →

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