#18286B#18286B

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

Color values

HEX#18286B
RGBrgb(24, 40, 107)
HSLhsl(228, 63%, 26%)
HSVhsv(228, 78%, 42%)
CMYKcmyk(77.6%, 62.6%, 0%, 58%)
CIE-LABlab(19.11, 19.46, -40.99)
CIE-LCHlch(19.11, 45.37, 295.39°)
OKLaboklab(31.01% -0.0035 -0.1183)
OKLCHoklch(31.01% 0.118 268.3)
XYZxyz(3.7884, 2.7729, 14.2426)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18286B #6B5B18
analogous
#18516B #18286B #31186B
triadic
#18286B #6B1828 #286B18
tetradic
#18286B #6B1851 #6B5B18 #186B31
square
#18286B #6B1851 #6B5B18 #186B31
split-complementary
#18286B #6B3118 #516B18
monochromatic
#060919 #0D1539 #18286B #233B9D #2E4DCF

Accessibility & contrast

On white

13.51
#18286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#18286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18286B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18286B#FFFFFF#000000##FFFFFF
##18286B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003945
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #18286b;
/* rgb */ color: rgb(24, 40, 107);
/* oklch */ color: oklch(31.0% 0.118 268.3);
Tailwind
colors: {
  custom: {
    50: '#636196',
    500: '#18286b',
    950: '#000000',
  },
}
SCSS
$custom: #18286b;
$custom-light: #636196;
$custom-dark: #000000;
JSON
{
  "hex": "#18286b",
  "rgb": {
    "r": 24,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 228.434,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31011,
    "c": 0.11837,
    "h": 268.3
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#18286B
secondary
#A18E3E
accent
#C741E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #18286B

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

Preview Lab → · Contrast checker → · Palette generator →

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