#181B5C#181B5C

#181B5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.114 H 273.7°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#181B5C
RGBrgb(24, 27, 92)
HSLhsl(237, 59%, 23%)
HSVhsv(237, 74%, 36%)
CMYKcmyk(73.9%, 70.7%, 0%, 63.9%)
CIE-LABlab(14.12, 22.73, -39.25)
CIE-LCHlch(14.12, 45.36, 300.07°)
OKLaboklab(26.9% 0.0074 -0.1134)
OKLCHoklch(26.9% 0.114 273.7)
XYZxyz(2.6997, 1.7505, 10.3187)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B5C #5C5918
analogous
#183D5C #181B5C #37185C
triadic
#181B5C #5C181B #1B5C18
tetradic
#181B5C #5C183D #5C5918 #185C37
square
#181B5C #5C183D #5C5918 #185C37
split-complementary
#181B5C #5C3718 #3D5C18
monochromatic
#060718 #0B0D2B #181B5C #25298D #3137BD

Accessibility & contrast

On white

15.55
#181B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B5C
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B5C#FFFFFF#000000##FFFFFF
##181B5C1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181b5c;
/* rgb */ color: rgb(24, 27, 92);
/* oklch */ color: oklch(26.9% 0.114 273.7);
Tailwind
colors: {
  custom: {
    50: '#60578b',
    500: '#181b5c',
    950: '#000000',
  },
}
SCSS
$custom: #181b5c;
$custom-light: #60578b;
$custom-dark: #000000;
JSON
{
  "hex": "#181b5c",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 237.353,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26896,
    "c": 0.1136,
    "h": 273.7
  },
  "luminance": 0.01751
}

Semantic roles & 50–950 ramp

primary
#181B5C
secondary
#938F3D
accent
#DB46E2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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