#181A6A#181A6A

#181A6A is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.135 H 272.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#181A6A
RGBrgb(24, 26, 106)
HSLhsl(239, 63%, 25%)
HSVhsv(239, 77%, 42%)
CMYKcmyk(77.4%, 75.5%, 0%, 58.4%)
CIE-LABlab(15.35, 28.77, -46.51)
CIE-LCHlch(15.35, 54.69, 301.74°)
OKLaboklab(28.23% 0.0062 -0.1346)
OKLCHoklch(28.23% 0.135 272.6)
XYZxyz(3.3467, 1.9732, 13.8374)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A6A #6A6818
analogous
#18436A #181A6A #3F186A
triadic
#181A6A #6A181A #1A6A18
tetradic
#181A6A #6A1843 #6A6818 #186A3F
square
#181A6A #6A1843 #6A6818 #186A3F
split-complementary
#181A6A #6A3F18 #436A18
monochromatic
#060619 #0D0E38 #181A6A #23269C #2F32CE

Accessibility & contrast

On white

15.06
#181A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A6A
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A6A#FFFFFF#000000##FFFFFF
##181A6A1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181a6a;
/* rgb */ color: rgb(24, 26, 106);
/* oklch */ color: oklch(28.2% 0.135 272.6);
Tailwind
colors: {
  custom: {
    50: '#645796',
    500: '#181a6a',
    950: '#000000',
  },
}
SCSS
$custom: #181a6a;
$custom-light: #645796;
$custom-dark: #000000;
JSON
{
  "hex": "#181a6a",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 238.537,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28229,
    "c": 0.1347,
    "h": 272.6
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#181A6A
secondary
#A09D3E
accent
#E242E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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