#181538#181538

#181538 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.2% C 0.066 H 283.5°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#181538
RGBrgb(24, 21, 56)
HSLhsl(245, 45%, 15%)
HSVhsv(245, 63%, 22%)
CMYKcmyk(57.1%, 62.5%, 0%, 78%)
CIE-LABlab(9.12, 13.05, -22.41)
CIE-LCHlch(9.12, 25.93, 300.20°)
OKLaboklab(22.19% 0.0154 -0.0639)
OKLCHoklch(22.19% 0.066 283.5)
XYZxyz(1.3584, 1.0160, 3.8651)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181538 #353815
analogous
#152338 #181538 #2A1538
triadic
#181538 #381815 #153818
tetradic
#181538 #381523 #353815 #15382A
square
#181538 #381523 #353815 #15382A
split-complementary
#181538 #382A15 #233815
monochromatic
#0A0816 #0A0816 #181538 #2B2665 #3E3691

Accessibility & contrast

On white

17.45
#181538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#181538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181538
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181538#FFFFFF#000000##FFFFFF
##1815381.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B39
Deuteranopia (green-blind)
#031937
Tritanopia (blue-blind)
#0C1D24
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #181538;
/* rgb */ color: rgb(24, 21, 56);
/* oklch */ color: oklch(22.2% 0.066 283.5);
Tailwind
colors: {
  custom: {
    50: '#58526f',
    500: '#181538',
    950: '#000000',
  },
}
SCSS
$custom: #181538;
$custom-light: #58526f;
$custom-dark: #000000;
JSON
{
  "hex": "#181538",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 56
  },
  "hsl": {
    "h": 245.143,
    "s": 45.455,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22186,
    "c": 0.06575,
    "h": 283.5
  },
  "luminance": 0.01016
}

Semantic roles & 50–950 ramp

primary
#181538
secondary
#6B6F3A
accent
#D553CA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #181538

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

Preview Lab → · Contrast checker → · Palette generator →

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