#181B53#181B53

#181B53 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.100 H 274.7°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#181B53
RGBrgb(24, 27, 83)
HSLhsl(237, 55%, 21%)
HSVhsv(237, 71%, 33%)
CMYKcmyk(71.1%, 67.5%, 0%, 67.5%)
CIE-LABlab(13.24, 19.18, -34.61)
CIE-LCHlch(13.24, 39.57, 298.99°)
OKLaboklab(25.99% 0.0081 -0.0997)
OKLCHoklch(25.99% 0.1 274.7)
XYZxyz(2.3294, 1.6024, 8.3685)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B53 #535018
analogous
#183853 #181B53 #321853
triadic
#181B53 #53181B #1B5318
tetradic
#181B53 #531838 #535018 #185332
square
#181B53 #531838 #535018 #185332
split-complementary
#181B53 #533218 #385318
monochromatic
#070818 #0A0C24 #181B53 #262A82 #333AB2

Accessibility & contrast

On white

15.90
#181B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B53
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B53#FFFFFF#000000##FFFFFF
##181B531.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#001F52
Tritanopia (blue-blind)
#002934
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181b53;
/* rgb */ color: rgb(24, 27, 83);
/* oklch */ color: oklch(26.0% 0.100 274.7);
Tailwind
colors: {
  custom: {
    50: '#5d5784',
    500: '#181b53',
    950: '#000000',
  },
}
SCSS
$custom: #181b53;
$custom-light: #5d5784;
$custom-dark: #000000;
JSON
{
  "hex": "#181b53",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 236.949,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25985,
    "c": 0.10008,
    "h": 274.7
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#181B53
secondary
#8A863D
accent
#D749DE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B53

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

Preview Lab → · Contrast checker → · Palette generator →

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