#181A6D#181A6D

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

Color values

HEX#181A6D
RGBrgb(24, 26, 109)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 43%)
CMYKcmyk(78%, 76.1%, 0%, 57.3%)
CIE-LABlab(15.68, 29.89, -47.92)
CIE-LCHlch(15.68, 56.48, 301.95°)
OKLaboklab(28.57% 0.0057 -0.1387)
OKLCHoklch(28.57% 0.139 272.4)
XYZxyz(3.5055, 2.0367, 14.6734)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A6D #6D6B18
analogous
#18446D #181A6D #40186D
triadic
#181A6D #6D181A #1A6D18
tetradic
#181A6D #6D1844 #6D6B18 #186D40
square
#181A6D #6D1844 #6D6B18 #186D40
split-complementary
#181A6D #6D4018 #446D18
monochromatic
#060619 #0D0E3B #181A6D #23269F #2E32D1

Accessibility & contrast

On white

14.92
#181A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A6D
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A6D#FFFFFF#000000##FFFFFF
##181A6D1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181a6d;
/* rgb */ color: rgb(24, 26, 109);
/* oklch */ color: oklch(28.6% 0.139 272.4);
Tailwind
colors: {
  custom: {
    50: '#655798',
    500: '#181a6d',
    950: '#000000',
  },
}
SCSS
$custom: #181a6d;
$custom-light: #655798;
$custom-dark: #000000;
JSON
{
  "hex": "#181a6d",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 109
  },
  "hsl": {
    "h": 238.588,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28566,
    "c": 0.13879,
    "h": 272.4
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#181A6D
secondary
#A3A03E
accent
#E341E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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