#181C61#181C61

#181C61 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.120 H 272.9°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#181C61
RGBrgb(24, 28, 97)
HSLhsl(237, 60%, 24%)
HSVhsv(237, 75%, 38%)
CMYKcmyk(75.3%, 71.1%, 0%, 62%)
CIE-LABlab(14.89, 23.99, -41.33)
CIE-LCHlch(14.89, 47.79, 300.13°)
OKLaboklab(27.61% 0.0061 -0.1194)
OKLCHoklch(27.61% 0.12 272.9)
XYZxyz(2.9489, 1.8875, 11.5159)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C61 #615D18
analogous
#184061 #181C61 #381861
triadic
#181C61 #61181C #1C6118
tetradic
#181C61 #611840 #615D18 #186138
square
#181C61 #611840 #615D18 #186138
split-complementary
#181C61 #613818 #406118
monochromatic
#060719 #0C0E30 #181C61 #242A92 #3038C3

Accessibility & contrast

On white

15.24
#181C61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181C61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C61
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C61#FFFFFF#000000##FFFFFF
##181C611.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#002E3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181c61;
/* rgb */ color: rgb(24, 28, 97);
/* oklch */ color: oklch(27.6% 0.120 272.9);
Tailwind
colors: {
  custom: {
    50: '#61588f',
    500: '#181c61',
    950: '#000000',
  },
}
SCSS
$custom: #181c61;
$custom-light: #61588f;
$custom-dark: #000000;
JSON
{
  "hex": "#181c61",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 97
  },
  "hsl": {
    "h": 236.712,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27607,
    "c": 0.1196,
    "h": 272.9
  },
  "luminance": 0.01888
}

Semantic roles & 50–950 ramp

primary
#181C61
secondary
#97923D
accent
#DB44E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181C61

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

Preview Lab → · Contrast checker → · Palette generator →

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