#181850#181850

#181850 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.100 H 276.4°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#181850
RGBrgb(24, 24, 80)
HSLhsl(240, 54%, 20%)
HSVhsv(240, 70%, 31%)
CMYKcmyk(70%, 70%, 0%, 68.6%)
CIE-LABlab(12.13, 20.16, -34.38)
CIE-LCHlch(12.13, 39.86, 300.39°)
OKLaboklab(25.08% 0.0112 -0.0991)
OKLCHoklch(25.08% 0.1 276.4)
XYZxyz(2.1508, 1.4265, 7.7499)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181850 #505018
analogous
#183450 #181850 #341850
triadic
#181850 #501818 #185018
tetradic
#181850 #501834 #505018 #185034
square
#181850 #501834 #505018 #185034
split-complementary
#181850 #503418 #345018
monochromatic
#070718 #0A0A21 #181850 #26267F #3434AE

Accessibility & contrast

On white

16.34
#181850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181850
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181850#FFFFFF#000000##FFFFFF
##1818501.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#001D4F
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181850;
/* rgb */ color: rgb(24, 24, 80);
/* oklch */ color: oklch(25.1% 0.100 276.4);
Tailwind
colors: {
  custom: {
    50: '#5d5582',
    500: '#181850',
    950: '#000000',
  },
}
SCSS
$custom: #181850;
$custom-light: #5d5582;
$custom-dark: #000000;
JSON
{
  "hex": "#181850",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 240,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25081,
    "c": 0.09972,
    "h": 276.4
  },
  "luminance": 0.01427
}

Semantic roles & 50–950 ramp

primary
#181850
secondary
#87873D
accent
#DD4BDD
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #181850

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

Preview Lab → · Contrast checker → · Palette generator →

#181850 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva