#181F63#181F63

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

Color values

HEX#181F63
RGBrgb(24, 31, 99)
HSLhsl(234, 61%, 24%)
HSVhsv(234, 76%, 39%)
CMYKcmyk(75.8%, 68.7%, 0%, 61.2%)
CIE-LABlab(15.87, 22.67, -41.03)
CIE-LCHlch(15.87, 46.88, 298.92°)
OKLaboklab(28.39% 0.0037 -0.1185)
OKLCHoklch(28.39% 0.119 271.8)
XYZxyz(3.1180, 2.0747, 12.0381)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F63 #635C18
analogous
#184563 #181F63 #371863
triadic
#181F63 #63181F #1F6318
tetradic
#181F63 #631845 #635C18 #186337
square
#181F63 #631845 #635C18 #186337
split-complementary
#181F63 #633718 #456318
monochromatic
#060819 #0C1032 #181F63 #242E94 #303EC6

Accessibility & contrast

On white

14.84
#181F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F63
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F63#FFFFFF#000000##FFFFFF
##181F631.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181f63;
/* rgb */ color: rgb(24, 31, 99);
/* oklch */ color: oklch(28.4% 0.119 271.8);
Tailwind
colors: {
  custom: {
    50: '#615a90',
    500: '#181f63',
    950: '#000000',
  },
}
SCSS
$custom: #181f63;
$custom-light: #615a90;
$custom-dark: #000000;
JSON
{
  "hex": "#181f63",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 234.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2839,
    "c": 0.11861,
    "h": 271.8
  },
  "luminance": 0.02075
}

Semantic roles & 50–950 ramp

primary
#181F63
secondary
#99913E
accent
#D544E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040D
muted
#7A797D

Preview Lab

Preview with #181F63

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

Preview Lab → · Contrast checker → · Palette generator →

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