#181F52#181F52

#181F52 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.7% C 0.093 H 272.6°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#181F52
RGBrgb(24, 31, 82)
HSLhsl(233, 55%, 21%)
HSVhsv(233, 71%, 32%)
CMYKcmyk(70.7%, 62.2%, 0%, 67.8%)
CIE-LABlab(14.31, 15.84, -32.21)
CIE-LCHlch(14.31, 35.89, 296.19°)
OKLaboklab(26.74% 0.0042 -0.0926)
OKLCHoklch(26.74% 0.093 272.6)
XYZxyz(2.3892, 1.7831, 8.1993)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F52 #524B18
analogous
#183C52 #181F52 #2E1852
triadic
#181F52 #52181F #1F5218
tetradic
#181F52 #52183C #524B18 #18522E
square
#181F52 #52183C #524B18 #18522E
split-complementary
#181F52 #522E18 #3C5218
monochromatic
#070918 #0A0D23 #181F52 #263181 #3443B1

Accessibility & contrast

On white

15.48
#181F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F52
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F52#FFFFFF#000000##FFFFFF
##181F521.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002B35
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181f52;
/* rgb */ color: rgb(24, 31, 82);
/* oklch */ color: oklch(26.7% 0.093 272.6);
Tailwind
colors: {
  custom: {
    50: '#5d5a83',
    500: '#181f52',
    950: '#000000',
  },
}
SCSS
$custom: #181f52;
$custom-light: #5d5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#181f52",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 232.759,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26743,
    "c": 0.09273,
    "h": 272.6
  },
  "luminance": 0.01783
}

Semantic roles & 50–950 ramp

primary
#181F52
secondary
#89803D
accent
#CC4ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F52

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

Preview Lab → · Contrast checker → · Palette generator →

#181F52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva