#181A6C#181A6C

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

Color values

HEX#181A6C
RGBrgb(24, 26, 108)
HSLhsl(239, 64%, 26%)
HSVhsv(239, 78%, 42%)
CMYKcmyk(77.8%, 75.9%, 0%, 57.6%)
CIE-LABlab(15.57, 29.51, -47.45)
CIE-LCHlch(15.57, 55.88, 301.88°)
OKLaboklab(28.45% 0.0059 -0.1373)
OKLCHoklch(28.45% 0.137 272.4)
XYZxyz(3.4519, 2.0153, 14.3915)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A6C #6C6A18
analogous
#18446C #181A6C #40186C
triadic
#181A6C #6C181A #1A6C18
tetradic
#181A6C #6C1844 #6C6A18 #186C40
square
#181A6C #6C1844 #6C6A18 #186C40
split-complementary
#181A6C #6C4018 #446C18
monochromatic
#060619 #0D0E3A #181A6C #23269E #2E32D0

Accessibility & contrast

On white

14.97
#181A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A6C
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A6C#FFFFFF#000000##FFFFFF
##181A6C1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181a6c;
/* rgb */ color: rgb(24, 26, 108);
/* oklch */ color: oklch(28.5% 0.137 272.4);
Tailwind
colors: {
  custom: {
    50: '#645797',
    500: '#181a6c',
    950: '#000000',
  },
}
SCSS
$custom: #181a6c;
$custom-light: #645797;
$custom-dark: #000000;
JSON
{
  "hex": "#181a6c",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 108
  },
  "hsl": {
    "h": 238.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28454,
    "c": 0.13744,
    "h": 272.4
  },
  "luminance": 0.02016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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