#181F62#181F62

#181F62 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.117 H 271.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#181F62
RGBrgb(24, 31, 98)
HSLhsl(234, 61%, 24%)
HSVhsv(234, 76%, 38%)
CMYKcmyk(75.5%, 68.4%, 0%, 61.6%)
CIE-LABlab(15.78, 22.27, -40.53)
CIE-LCHlch(15.78, 46.25, 298.79°)
OKLaboklab(28.29% 0.0038 -0.1171)
OKLCHoklch(28.29% 0.117 271.8)
XYZxyz(3.0705, 2.0557, 11.7879)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F62 #625B18
analogous
#184462 #181F62 #361862
triadic
#181F62 #62181F #1F6218
tetradic
#181F62 #621844 #625B18 #186236
square
#181F62 #621844 #625B18 #186236
split-complementary
#181F62 #623618 #446218
monochromatic
#060819 #0C0F31 #181F62 #242F93 #303EC4

Accessibility & contrast

On white

14.88
#181F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F62
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F62#FFFFFF#000000##FFFFFF
##181F621.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181f62;
/* rgb */ color: rgb(24, 31, 98);
/* oklch */ color: oklch(28.3% 0.117 271.8);
Tailwind
colors: {
  custom: {
    50: '#615a8f',
    500: '#181f62',
    950: '#000000',
  },
}
SCSS
$custom: #181f62;
$custom-light: #615a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#181f62",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 234.324,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28289,
    "c": 0.11714,
    "h": 271.8
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#181F62
secondary
#98903E
accent
#D544E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #181F62

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

Preview Lab → · Contrast checker → · Palette generator →

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