#181A62#181A62

#181A62 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.3% C 0.124 H 273.5°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#181A62
RGBrgb(24, 26, 98)
HSLhsl(238, 61%, 24%)
HSVhsv(238, 76%, 38%)
CMYKcmyk(75.5%, 73.5%, 0%, 61.6%)
CIE-LABlab(14.48, 25.74, -42.66)
CIE-LCHlch(14.48, 49.82, 301.11°)
OKLaboklab(27.35% 0.0074 -0.1233)
OKLCHoklch(27.35% 0.124 273.5)
XYZxyz(2.9500, 1.8145, 11.7477)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A62 #626018
analogous
#183F62 #181A62 #3B1862
triadic
#181A62 #62181A #1A6218
tetradic
#181A62 #62183F #626018 #18623B
square
#181A62 #62183F #626018 #18623B
split-complementary
#181A62 #623B18 #3F6218
monochromatic
#060719 #0C0D31 #181A62 #242793 #3034C4

Accessibility & contrast

On white

15.41
#181A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A62
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A62#FFFFFF#000000##FFFFFF
##181A621.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181a62;
/* rgb */ color: rgb(24, 26, 98);
/* oklch */ color: oklch(27.3% 0.124 273.5);
Tailwind
colors: {
  custom: {
    50: '#62578f',
    500: '#181a62',
    950: '#000000',
  },
}
SCSS
$custom: #181a62;
$custom-light: #62578f;
$custom-dark: #000000;
JSON
{
  "hex": "#181a62",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 238.378,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27347,
    "c": 0.12354,
    "h": 273.5
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#181A62
secondary
#98963E
accent
#DF44E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181A62

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

Preview Lab → · Contrast checker → · Palette generator →

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