#181A6B#181A6B

#181A6B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.136 H 272.5°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#181A6B
RGBrgb(24, 26, 107)
HSLhsl(239, 63%, 26%)
HSVhsv(239, 78%, 42%)
CMYKcmyk(77.6%, 75.7%, 0%, 58%)
CIE-LABlab(15.46, 29.14, -46.98)
CIE-LCHlch(15.46, 55.28, 301.81°)
OKLaboklab(28.34% 0.006 -0.1359)
OKLCHoklch(28.34% 0.136 272.5)
XYZxyz(3.3990, 1.9942, 14.1128)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A6B #6B6918
analogous
#18436B #181A6B #3F186B
triadic
#181A6B #6B181A #1A6B18
tetradic
#181A6B #6B1843 #6B6918 #186B3F
square
#181A6B #6B1843 #6B6918 #186B3F
split-complementary
#181A6B #6B3F18 #436B18
monochromatic
#060619 #0D0E39 #181A6B #23269D #2E32CF

Accessibility & contrast

On white

15.01
#181A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A6B
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A6B#FFFFFF#000000##FFFFFF
##181A6B1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003140
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181a6b;
/* rgb */ color: rgb(24, 26, 107);
/* oklch */ color: oklch(28.3% 0.136 272.5);
Tailwind
colors: {
  custom: {
    50: '#645796',
    500: '#181a6b',
    950: '#000000',
  },
}
SCSS
$custom: #181a6b;
$custom-light: #645796;
$custom-dark: #000000;
JSON
{
  "hex": "#181a6b",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 238.554,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28341,
    "c": 0.13606,
    "h": 272.5
  },
  "luminance": 0.01995
}

Semantic roles & 50–950 ramp

primary
#181A6B
secondary
#A19E3E
accent
#E241E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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