#181C58#181C58

#181C58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.106 H 273.7°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#181C58
RGBrgb(24, 28, 88)
HSLhsl(236, 57%, 22%)
HSVhsv(236, 73%, 35%)
CMYKcmyk(72.7%, 68.2%, 0%, 65.5%)
CIE-LABlab(14.00, 20.45, -36.77)
CIE-LCHlch(14.00, 42.07, 299.08°)
OKLaboklab(26.68% 0.0069 -0.1061)
OKLCHoklch(26.68% 0.106 273.7)
XYZxyz(2.5528, 1.7290, 9.4298)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C58 #585418
analogous
#183C58 #181C58 #341858
triadic
#181C58 #58181C #1C5818
tetradic
#181C58 #58183C #585418 #185834
square
#181C58 #58183C #585418 #185834
split-complementary
#181C58 #583418 #3C5818
monochromatic
#070818 #0B0D28 #181C58 #252B88 #323BB8

Accessibility & contrast

On white

15.60
#181C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C58
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C58#FFFFFF#000000##FFFFFF
##181C581.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181c58;
/* rgb */ color: rgb(24, 28, 88);
/* oklch */ color: oklch(26.7% 0.106 273.7);
Tailwind
colors: {
  custom: {
    50: '#5f5888',
    500: '#181c58',
    950: '#000000',
  },
}
SCSS
$custom: #181c58;
$custom-light: #5f5888;
$custom-dark: #000000;
JSON
{
  "hex": "#181c58",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 236.25,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26684,
    "c": 0.1063,
    "h": 273.7
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#181C58
secondary
#8F8A3D
accent
#D747E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181C58

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

Preview Lab → · Contrast checker → · Palette generator →

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