#181C5F#181C5F

#181C5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.117 H 273.1°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#181C5F
RGBrgb(24, 28, 95)
HSLhsl(237, 60%, 23%)
HSVhsv(237, 75%, 37%)
CMYKcmyk(74.7%, 70.5%, 0%, 62.7%)
CIE-LABlab(14.68, 23.21, -40.33)
CIE-LCHlch(14.68, 46.53, 299.91°)
OKLaboklab(27.4% 0.0064 -0.1165)
OKLCHoklch(27.4% 0.117 273.1)
XYZxyz(2.8568, 1.8506, 11.0309)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C5F #5F5B18
analogous
#183F5F #181C5F #37185F
triadic
#181C5F #5F181C #1C5F18
tetradic
#181C5F #5F183F #5F5B18 #185F37
square
#181C5F #5F183F #5F5B18 #185F37
split-complementary
#181C5F #5F3718 #3F5F18
monochromatic
#060718 #0C0E2E #181C5F #242A90 #3139C1

Accessibility & contrast

On white

15.33
#181C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C5F
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C5F#FFFFFF#000000##FFFFFF
##181C5F1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181c5f;
/* rgb */ color: rgb(24, 28, 95);
/* oklch */ color: oklch(27.4% 0.117 273.1);
Tailwind
colors: {
  custom: {
    50: '#61588d',
    500: '#181c5f',
    950: '#000000',
  },
}
SCSS
$custom: #181c5f;
$custom-light: #61588d;
$custom-dark: #000000;
JSON
{
  "hex": "#181c5f",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 95
  },
  "hsl": {
    "h": 236.62,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27398,
    "c": 0.11669,
    "h": 273.1
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#181C5F
secondary
#95903D
accent
#DA45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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