#181A6F#181A6F

#181A6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.141 H 272.2°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#181A6F
RGBrgb(24, 26, 111)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 44%)
CMYKcmyk(78.4%, 76.6%, 0%, 56.5%)
CIE-LABlab(15.90, 30.63, -48.85)
CIE-LCHlch(15.90, 57.66, 302.08°)
OKLaboklab(28.79% 0.0054 -0.1414)
OKLCHoklch(28.79% 0.141 272.2)
XYZxyz(3.6144, 2.0803, 15.2469)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A6F #6F6D18
analogous
#18466F #181A6F #42186F
triadic
#181A6F #6F181A #1A6F18
tetradic
#181A6F #6F1846 #6F6D18 #186F42
square
#181A6F #6F1846 #6F6D18 #186F42
split-complementary
#181A6F #6F4218 #466F18
monochromatic
#050619 #0D0E3D #181A6F #2326A1 #2F33D2

Accessibility & contrast

On white

14.83
#181A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A6F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A6F#FFFFFF#000000##FFFFFF
##181A6F1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181a6f;
/* rgb */ color: rgb(24, 26, 111);
/* oklch */ color: oklch(28.8% 0.141 272.2);
Tailwind
colors: {
  custom: {
    50: '#655799',
    500: '#181a6f',
    950: '#000000',
  },
}
SCSS
$custom: #181a6f;
$custom-light: #655799;
$custom-dark: #000000;
JSON
{
  "hex": "#181a6f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 238.621,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28793,
    "c": 0.14149,
    "h": 272.2
  },
  "luminance": 0.02081
}

Semantic roles & 50–950 ramp

primary
#181A6F
secondary
#A5A23E
accent
#E440E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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