#181A63#181A63

#181A63 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.5% C 0.125 H 273.3°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#181A63
RGBrgb(24, 26, 99)
HSLhsl(238, 61%, 24%)
HSVhsv(238, 76%, 39%)
CMYKcmyk(75.8%, 73.7%, 0%, 61.2%)
CIE-LABlab(14.59, 26.13, -43.15)
CIE-LCHlch(14.59, 50.44, 301.20°)
OKLaboklab(27.46% 0.0073 -0.1247)
OKLCHoklch(27.46% 0.125 273.3)
XYZxyz(2.9975, 1.8335, 11.9979)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A63 #636118
analogous
#184063 #181A63 #3C1863
triadic
#181A63 #63181A #1A6318
tetradic
#181A63 #631840 #636118 #18633C
square
#181A63 #631840 #636118 #18633C
split-complementary
#181A63 #633C18 #406318
monochromatic
#060619 #0C0D32 #181A63 #242794 #3034C6

Accessibility & contrast

On white

15.36
#181A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#181A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A63
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A63#FFFFFF#000000##FFFFFF
##181A631.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002162
Tritanopia (blue-blind)
#002E3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181a63;
/* rgb */ color: rgb(24, 26, 99);
/* oklch */ color: oklch(27.5% 0.125 273.3);
Tailwind
colors: {
  custom: {
    50: '#625790',
    500: '#181a63',
    950: '#000000',
  },
}
SCSS
$custom: #181a63;
$custom-light: #625790;
$custom-dark: #000000;
JSON
{
  "hex": "#181a63",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 238.4,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.27456,
    "c": 0.12496,
    "h": 273.3
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#181A63
secondary
#99973E
accent
#E044E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030D
muted
#7A787D

Preview Lab

Preview with #181A63

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

Preview Lab → · Contrast checker → · Palette generator →

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