#181F60#181F60

#181F60 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.114 H 272.0°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#181F60
RGBrgb(24, 31, 96)
HSLhsl(234, 60%, 24%)
HSVhsv(234, 75%, 38%)
CMYKcmyk(75%, 67.7%, 0%, 62.4%)
CIE-LABlab(15.58, 21.48, -39.52)
CIE-LCHlch(15.58, 44.98, 298.52°)
OKLaboklab(28.09% 0.0039 -0.1141)
OKLCHoklch(28.09% 0.114 272)
XYZxyz(2.9773, 2.0184, 11.2967)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F60 #605918
analogous
#184360 #181F60 #351860
triadic
#181F60 #60181F #1F6018
tetradic
#181F60 #601843 #605918 #186035
square
#181F60 #601843 #605918 #186035
split-complementary
#181F60 #603518 #436018
monochromatic
#060818 #0C0F2F #181F60 #242F91 #303FC2

Accessibility & contrast

On white

14.96
#181F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F60
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F60#FFFFFF#000000##FFFFFF
##181F601.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181f60;
/* rgb */ color: rgb(24, 31, 96);
/* oklch */ color: oklch(28.1% 0.114 272.0);
Tailwind
colors: {
  custom: {
    50: '#605a8e',
    500: '#181f60',
    950: '#000000',
  },
}
SCSS
$custom: #181f60;
$custom-light: #605a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f60",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 96
  },
  "hsl": {
    "h": 234.167,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28087,
    "c": 0.1142,
    "h": 272
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#181F60
secondary
#968E3D
accent
#D445E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #181F60

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

Preview Lab → · Contrast checker → · Palette generator →

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