#181A61#181A61

#181A61 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.2% C 0.122 H 273.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#181A61
RGBrgb(24, 26, 97)
HSLhsl(238, 60%, 24%)
HSVhsv(238, 75%, 38%)
CMYKcmyk(75.3%, 73.2%, 0%, 62%)
CIE-LABlab(14.38, 25.36, -42.17)
CIE-LCHlch(14.38, 49.20, 301.02°)
OKLaboklab(27.24% 0.0076 -0.1219)
OKLCHoklch(27.24% 0.122 273.6)
XYZxyz(2.9030, 1.7958, 11.5006)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A61 #615F18
analogous
#183E61 #181A61 #3A1861
triadic
#181A61 #61181A #1A6118
tetradic
#181A61 #61183E #615F18 #18613A
square
#181A61 #61183E #615F18 #18613A
split-complementary
#181A61 #613A18 #3E6118
monochromatic
#060719 #0C0D30 #181A61 #242792 #3034C3

Accessibility & contrast

On white

15.45
#181A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A61
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A61#FFFFFF#000000##FFFFFF
##181A611.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002160
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181a61;
/* rgb */ color: rgb(24, 26, 97);
/* oklch */ color: oklch(27.2% 0.122 273.6);
Tailwind
colors: {
  custom: {
    50: '#61578f',
    500: '#181a61',
    950: '#000000',
  },
}
SCSS
$custom: #181a61;
$custom-light: #61578f;
$custom-dark: #000000;
JSON
{
  "hex": "#181a61",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 238.356,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27239,
    "c": 0.12213,
    "h": 273.6
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#181A61
secondary
#97953D
accent
#DF44E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181A61

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

Preview Lab → · Contrast checker → · Palette generator →

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