#181B5B#181B5B

#181B5B is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.112 H 273.9°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#181B5B
RGBrgb(24, 27, 91)
HSLhsl(237, 58%, 23%)
HSVhsv(237, 74%, 36%)
CMYKcmyk(73.6%, 70.3%, 0%, 64.3%)
CIE-LABlab(14.02, 22.34, -38.75)
CIE-LCHlch(14.02, 44.73, 299.97°)
OKLaboklab(26.79% 0.0075 -0.1119)
OKLCHoklch(26.79% 0.112 273.9)
XYZxyz(2.6563, 1.7331, 10.0900)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B5B #5B5818
analogous
#183D5B #181B5B #36185B
triadic
#181B5B #5B181B #1B5B18
tetradic
#181B5B #5B183D #5B5818 #185B36
square
#181B5B #5B183D #5B5818 #185B36
split-complementary
#181B5B #5B3618 #3D5B18
monochromatic
#060718 #0B0D2B #181B5B #25298B #3238BC

Accessibility & contrast

On white

15.59
#181B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B5B
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B5B#FFFFFF#000000##FFFFFF
##181B5B1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b5b;
/* rgb */ color: rgb(24, 27, 91);
/* oklch */ color: oklch(26.8% 0.112 273.9);
Tailwind
colors: {
  custom: {
    50: '#60578a',
    500: '#181b5b',
    950: '#000000',
  },
}
SCSS
$custom: #181b5b;
$custom-light: #60578a;
$custom-dark: #000000;
JSON
{
  "hex": "#181b5b",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 237.313,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26792,
    "c": 0.11213,
    "h": 273.9
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#181B5B
secondary
#928E3D
accent
#DB46E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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