#181C84#181C84

#181C84 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.167 H 270.2°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#181C84
RGBrgb(24, 28, 132)
HSLhsl(238, 69%, 31%)
HSVhsv(238, 82%, 52%)
CMYKcmyk(81.8%, 78.8%, 0%, 48.2%)
CIE-LABlab(18.76, 36.97, -57.58)
CIE-LCHlch(18.76, 68.43, 302.70°)
OKLaboklab(31.53% 0.0007 -0.1668)
OKLCHoklch(31.53% 0.167 270.2)
XYZxyz(4.9554, 2.6901, 22.0834)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C84 #848018
analogous
#185284 #181C84 #4A1884
triadic
#181C84 #84181C #1C8418
tetradic
#181C84 #841852 #848018 #18844A
square
#181C84 #841852 #848018 #18844A
split-complementary
#181C84 #844A18 #528418
monochromatic
#05061C #0F1150 #181C84 #2127B8 #3B41DB

Accessibility & contrast

On white

13.65
#181C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C84
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C84#FFFFFF#000000##FFFFFF
##181C841.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003387
Deuteranopia (green-blind)
#002882
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181c84;
/* rgb */ color: rgb(24, 28, 132);
/* oklch */ color: oklch(31.5% 0.167 270.2);
Tailwind
colors: {
  custom: {
    50: '#6b5aa9',
    500: '#181c84',
    950: '#000000',
  },
}
SCSS
$custom: #181c84;
$custom-light: #6b5aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#181c84",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 237.778,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31534,
    "c": 0.16677,
    "h": 270.2
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#181C84
secondary
#B8B340
accent
#E63CEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181C84

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

Preview Lab → · Contrast checker → · Palette generator →

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