#181B50#181B50

#181B50 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.095 H 275.0°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#181B50
RGBrgb(24, 27, 80)
HSLhsl(237, 54%, 20%)
HSVhsv(237, 70%, 31%)
CMYKcmyk(70%, 66.3%, 0%, 68.6%)
CIE-LABlab(12.97, 17.99, -33.02)
CIE-LCHlch(12.97, 37.60, 298.58°)
OKLaboklab(25.69% 0.0083 -0.0951)
OKLCHoklch(25.69% 0.095 275)
XYZxyz(2.2161, 1.5571, 7.7716)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B50 #504D18
analogous
#183750 #181B50 #311850
triadic
#181B50 #50181B #1B5018
tetradic
#181B50 #501837 #504D18 #185031
square
#181B50 #501837 #504D18 #185031
split-complementary
#181B50 #503118 #375018
monochromatic
#070818 #0A0B21 #181B50 #262B7F #343BAE

Accessibility & contrast

On white

16.01
#181B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B50
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B50#FFFFFF#000000##FFFFFF
##181B501.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181b50;
/* rgb */ color: rgb(24, 27, 80);
/* oklch */ color: oklch(25.7% 0.095 275.0);
Tailwind
colors: {
  custom: {
    50: '#5d5782',
    500: '#181b50',
    950: '#000000',
  },
}
SCSS
$custom: #181b50;
$custom-light: #5d5782;
$custom-dark: #000000;
JSON
{
  "hex": "#181b50",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 80
  },
  "hsl": {
    "h": 236.786,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25693,
    "c": 0.09543,
    "h": 275
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#181B50
secondary
#87833D
accent
#D54BDD
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #181B50

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

Preview Lab → · Contrast checker → · Palette generator →

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