#181F61#181F61

#181F61 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.2% C 0.116 H 271.9°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#181F61
RGBrgb(24, 31, 97)
HSLhsl(234, 60%, 24%)
HSVhsv(234, 75%, 38%)
CMYKcmyk(75.3%, 68%, 0%, 62%)
CIE-LABlab(15.68, 21.88, -40.03)
CIE-LCHlch(15.68, 45.62, 298.66°)
OKLaboklab(28.19% 0.0039 -0.1156)
OKLCHoklch(28.19% 0.116 271.9)
XYZxyz(3.0236, 2.0369, 11.5408)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F61 #615A18
analogous
#184361 #181F61 #351861
triadic
#181F61 #61181F #1F6118
tetradic
#181F61 #611843 #615A18 #186135
square
#181F61 #611843 #615A18 #186135
split-complementary
#181F61 #613518 #436118
monochromatic
#060819 #0C0F30 #181F61 #242F92 #303EC3

Accessibility & contrast

On white

14.92
#181F61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F61
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F61#FFFFFF#000000##FFFFFF
##181F611.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#00303C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181f61;
/* rgb */ color: rgb(24, 31, 97);
/* oklch */ color: oklch(28.2% 0.116 271.9);
Tailwind
colors: {
  custom: {
    50: '#615a8f',
    500: '#181f61',
    950: '#000000',
  },
}
SCSS
$custom: #181f61;
$custom-light: #615a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#181f61",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 97
  },
  "hsl": {
    "h": 234.247,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28188,
    "c": 0.11567,
    "h": 271.9
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#181F61
secondary
#978F3D
accent
#D444E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #181F61

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

Preview Lab → · Contrast checker → · Palette generator →

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