#181B58#181B58

#181B58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.108 H 274.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#181B58
RGBrgb(24, 27, 88)
HSLhsl(237, 57%, 22%)
HSVhsv(237, 73%, 35%)
CMYKcmyk(72.7%, 69.3%, 0%, 65.5%)
CIE-LABlab(13.72, 21.16, -37.22)
CIE-LCHlch(13.72, 42.81, 299.62°)
OKLaboklab(26.48% 0.0078 -0.1074)
OKLCHoklch(26.48% 0.108 274.2)
XYZxyz(2.5295, 1.6824, 9.4221)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B58 #585518
analogous
#183B58 #181B58 #351858
triadic
#181B58 #58181B #1B5818
tetradic
#181B58 #58183B #585518 #185835
square
#181B58 #58183B #585518 #185835
split-complementary
#181B58 #583518 #3B5818
monochromatic
#070718 #0B0C28 #181B58 #252A88 #3239B8

Accessibility & contrast

On white

15.71
#181B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181B58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B58
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B58#FFFFFF#000000##FFFFFF
##181B581.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181b58;
/* rgb */ color: rgb(24, 27, 88);
/* oklch */ color: oklch(26.5% 0.108 274.2);
Tailwind
colors: {
  custom: {
    50: '#5f5788',
    500: '#181b58',
    950: '#000000',
  },
}
SCSS
$custom: #181b58;
$custom-light: #5f5788;
$custom-dark: #000000;
JSON
{
  "hex": "#181b58",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 237.188,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26485,
    "c": 0.10767,
    "h": 274.2
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#181B58
secondary
#8F8B3D
accent
#D947E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181B58

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

Preview Lab → · Contrast checker → · Palette generator →

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