#181B61#181B61

#181B61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.4% C 0.121 H 273.3°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#181B61
RGBrgb(24, 27, 97)
HSLhsl(238, 60%, 24%)
HSVhsv(238, 75%, 38%)
CMYKcmyk(75.3%, 72.2%, 0%, 62%)
CIE-LABlab(14.63, 24.68, -41.75)
CIE-LCHlch(14.63, 48.50, 300.58°)
OKLaboklab(27.42% 0.0069 -0.1207)
OKLCHoklch(27.42% 0.121 273.3)
XYZxyz(2.9256, 1.8408, 11.5081)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B61 #615E18
analogous
#183F61 #181B61 #391861
triadic
#181B61 #61181B #1B6118
tetradic
#181B61 #61183F #615E18 #186139
square
#181B61 #61183F #615E18 #186139
split-complementary
#181B61 #613918 #3F6118
monochromatic
#060719 #0C0D30 #181B61 #242992 #3036C3

Accessibility & contrast

On white

15.35
#181B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B61
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B61#FFFFFF#000000##FFFFFF
##181B611.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181b61;
/* rgb */ color: rgb(24, 27, 97);
/* oklch */ color: oklch(27.4% 0.121 273.3);
Tailwind
colors: {
  custom: {
    50: '#61578f',
    500: '#181b61',
    950: '#000000',
  },
}
SCSS
$custom: #181b61;
$custom-light: #61578f;
$custom-dark: #000000;
JSON
{
  "hex": "#181b61",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 97
  },
  "hsl": {
    "h": 237.534,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27421,
    "c": 0.12087,
    "h": 273.3
  },
  "luminance": 0.01841
}

Semantic roles & 50–950 ramp

primary
#181B61
secondary
#97943D
accent
#DD44E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181B61

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

Preview Lab → · Contrast checker → · Palette generator →

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