#181852#181852

#181852 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.103 H 276.2°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#181852
RGBrgb(24, 24, 82)
HSLhsl(240, 55%, 21%)
HSVhsv(240, 71%, 32%)
CMYKcmyk(70.7%, 70.7%, 0%, 67.8%)
CIE-LABlab(12.33, 20.94, -35.43)
CIE-LCHlch(12.33, 41.15, 300.59°)
OKLaboklab(25.29% 0.011 -0.1022)
OKLCHoklch(25.29% 0.103 276.2)
XYZxyz(2.2258, 1.4565, 8.1448)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181852 #525218
analogous
#183552 #181852 #351852
triadic
#181852 #521818 #185218
tetradic
#181852 #521835 #525218 #185235
square
#181852 #521835 #525218 #185235
split-complementary
#181852 #523518 #355218
monochromatic
#070718 #0A0A23 #181852 #262681 #3434B1

Accessibility & contrast

On white

16.26
#181852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181852
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181852#FFFFFF#000000##FFFFFF
##1818521.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181852;
/* rgb */ color: rgb(24, 24, 82);
/* oklch */ color: oklch(25.3% 0.103 276.2);
Tailwind
colors: {
  custom: {
    50: '#5e5583',
    500: '#181852',
    950: '#000000',
  },
}
SCSS
$custom: #181852;
$custom-light: #5e5583;
$custom-dark: #000000;
JSON
{
  "hex": "#181852",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 240,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25285,
    "c": 0.10275,
    "h": 276.2
  },
  "luminance": 0.01457
}

Semantic roles & 50–950 ramp

primary
#181852
secondary
#89893D
accent
#DE4ADE
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181852

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

Preview Lab → · Contrast checker → · Palette generator →

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