#18186B#18186B

#18186B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.138 H 273.0°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#18186B
RGBrgb(24, 24, 107)
HSLhsl(240, 63%, 26%)
HSVhsv(240, 78%, 42%)
CMYKcmyk(77.6%, 77.6%, 0%, 58%)
CIE-LABlab(15.00, 30.41, -47.73)
CIE-LCHlch(15.00, 56.60, 302.50°)
OKLaboklab(28.02% 0.0071 -0.1381)
OKLCHoklch(28.02% 0.138 273)
XYZxyz(3.3563, 1.9087, 14.0986)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18186B #6B6B18
analogous
#18416B #18186B #41186B
triadic
#18186B #6B1818 #186B18
tetradic
#18186B #6B1841 #6B6B18 #186B41
square
#18186B #6B1841 #6B6B18 #186B41
split-complementary
#18186B #6B4118 #416B18
monochromatic
#060619 #0D0D39 #18186B #23239D #2E2ECF

Accessibility & contrast

On white

15.20
#18186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#18186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18186B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18186B#FFFFFF#000000##FFFFFF
##18186B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #18186b;
/* rgb */ color: rgb(24, 24, 107);
/* oklch */ color: oklch(28.0% 0.138 273.0);
Tailwind
colors: {
  custom: {
    50: '#645696',
    500: '#18186b',
    950: '#000000',
  },
}
SCSS
$custom: #18186b;
$custom-light: #645696;
$custom-dark: #000000;
JSON
{
  "hex": "#18186b",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 240,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28016,
    "c": 0.1383,
    "h": 273
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#18186B
secondary
#A1A13E
accent
#E641E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18186B

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

Preview Lab → · Contrast checker → · Palette generator →

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