#181A53#181A53

#181A53 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.101 H 275.1°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#181A53
RGBrgb(24, 26, 83)
HSLhsl(238, 55%, 21%)
HSVhsv(238, 71%, 33%)
CMYKcmyk(71.1%, 68.7%, 0%, 67.5%)
CIE-LABlab(12.97, 19.90, -35.06)
CIE-LCHlch(12.97, 40.32, 299.58°)
OKLaboklab(25.78% 0.0091 -0.1011)
OKLCHoklch(25.78% 0.101 275.1)
XYZxyz(2.3069, 1.5573, 8.3610)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A53 #535118
analogous
#183753 #181A53 #331853
triadic
#181A53 #53181A #1A5318
tetradic
#181A53 #531837 #535118 #185333
square
#181A53 #531837 #535118 #185333
split-complementary
#181A53 #533318 #375318
monochromatic
#070718 #0A0B24 #181A53 #262982 #3338B2

Accessibility & contrast

On white

16.01
#181A53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181A53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A53
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A53#FFFFFF#000000##FFFFFF
##181A531.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002455
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#002833
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181a53;
/* rgb */ color: rgb(24, 26, 83);
/* oklch */ color: oklch(25.8% 0.101 275.1);
Tailwind
colors: {
  custom: {
    50: '#5e5684',
    500: '#181a53',
    950: '#000000',
  },
}
SCSS
$custom: #181a53;
$custom-light: #5e5684;
$custom-dark: #000000;
JSON
{
  "hex": "#181a53",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 83
  },
  "hsl": {
    "h": 237.966,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25782,
    "c": 0.10149,
    "h": 275.1
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#181A53
secondary
#8A873D
accent
#D949DE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181A53

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

Preview Lab → · Contrast checker → · Palette generator →

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