#181B6A#181B6A

#181B6A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.134 H 272.4°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#181B6A
RGBrgb(24, 27, 106)
HSLhsl(238, 63%, 25%)
HSVhsv(238, 77%, 42%)
CMYKcmyk(77.4%, 74.5%, 0%, 58.4%)
CIE-LABlab(15.58, 28.12, -46.12)
CIE-LCHlch(15.58, 54.01, 301.37°)
OKLaboklab(28.4% 0.0056 -0.1334)
OKLCHoklch(28.4% 0.134 272.4)
XYZxyz(3.3693, 2.0183, 13.8449)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B6A #6A6718
analogous
#18446A #181B6A #3E186A
triadic
#181B6A #6A181B #1B6A18
tetradic
#181B6A #6A1844 #6A6718 #186A3E
square
#181B6A #6A1844 #6A6718 #186A3E
split-complementary
#181B6A #6A3E18 #446A18
monochromatic
#060619 #0D0E38 #181B6A #23289C #2F34CE

Accessibility & contrast

On white

14.96
#181B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B6A
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B6A#FFFFFF#000000##FFFFFF
##181B6A1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002369
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181b6a;
/* rgb */ color: rgb(24, 27, 106);
/* oklch */ color: oklch(28.4% 0.134 272.4);
Tailwind
colors: {
  custom: {
    50: '#645896',
    500: '#181b6a',
    950: '#000000',
  },
}
SCSS
$custom: #181b6a;
$custom-light: #645896;
$custom-dark: #000000;
JSON
{
  "hex": "#181b6a",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 237.805,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28399,
    "c": 0.13354,
    "h": 272.4
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#181B6A
secondary
#A09C3E
accent
#E042E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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