#181F50#181F50

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

Color values

HEX#181F50
RGBrgb(24, 31, 80)
HSLhsl(233, 54%, 20%)
HSVhsv(233, 70%, 31%)
CMYKcmyk(70%, 61.2%, 0%, 68.6%)
CIE-LABlab(14.13, 15.03, -31.12)
CIE-LCHlch(14.13, 34.56, 295.77°)
OKLaboklab(26.56% 0.0041 -0.0894)
OKLCHoklch(26.56% 0.09 272.6)
XYZxyz(2.3142, 1.7532, 7.8043)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F50 #504918
analogous
#183B50 #181F50 #2D1850
triadic
#181F50 #50181F #1F5018
tetradic
#181F50 #50183B #504918 #18502D
square
#181F50 #50183B #504918 #18502D
split-complementary
#181F50 #502D18 #3B5018
monochromatic
#070918 #0A0D21 #181F50 #26317F #3443AE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##181F50#FFFFFF#000000##FFFFFF
##181F501.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)
#002652
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181f50;
/* rgb */ color: rgb(24, 31, 80);
/* oklch */ color: oklch(26.6% 0.090 272.6);
Tailwind
colors: {
  custom: {
    50: '#5c5a81',
    500: '#181f50',
    950: '#000000',
  },
}
SCSS
$custom: #181f50;
$custom-light: #5c5a81;
$custom-dark: #000000;
JSON
{
  "hex": "#181f50",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 80
  },
  "hsl": {
    "h": 232.5,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26561,
    "c": 0.08954,
    "h": 272.6
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#181F50
secondary
#877E3D
accent
#CB4BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F50

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

Preview Lab → · Contrast checker → · Palette generator →

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