#181F59#181F59

#181F59 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.104 H 272.3°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#181F59
RGBrgb(24, 31, 89)
HSLhsl(234, 58%, 22%)
HSVhsv(234, 73%, 35%)
CMYKcmyk(73%, 65.2%, 0%, 65.1%)
CIE-LABlab(14.93, 18.67, -35.92)
CIE-LCHlch(14.93, 40.48, 297.46°)
OKLaboklab(27.4% 0.0042 -0.1036)
OKLCHoklch(27.4% 0.104 272.3)
XYZxyz(2.6692, 1.8952, 9.6744)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F59 #595218
analogous
#184059 #181F59 #311859
triadic
#181F59 #59181F #1F5918
tetradic
#181F59 #591840 #595218 #185931
square
#181F59 #591840 #595218 #185931
split-complementary
#181F59 #593118 #405918
monochromatic
#060818 #0B0E29 #181F59 #253089 #3241B9

Accessibility & contrast

On white

15.23
#181F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F59
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F59#FFFFFF#000000##FFFFFF
##181F591.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f59;
/* rgb */ color: rgb(24, 31, 89);
/* oklch */ color: oklch(27.4% 0.104 272.3);
Tailwind
colors: {
  custom: {
    50: '#5f5a88',
    500: '#181f59',
    950: '#000000',
  },
}
SCSS
$custom: #181f59;
$custom-light: #5f5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#181f59",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 233.538,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.274,
    "c": 0.10364,
    "h": 272.3
  },
  "luminance": 0.01895
}

Semantic roles & 50–950 ramp

primary
#181F59
secondary
#90873D
accent
#D047E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181F59

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

Preview Lab → · Contrast checker → · Palette generator →

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