#181A7B#181A7B

#181A7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.157 H 271.1°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#181A7B
RGBrgb(24, 26, 123)
HSLhsl(239, 67%, 29%)
HSVhsv(239, 80%, 48%)
CMYKcmyk(80.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(17.29, 34.97, -54.30)
CIE-LCHlch(17.29, 64.58, 302.78°)
OKLaboklab(30.18% 0.0031 -0.1572)
OKLCHoklch(30.18% 0.157 271.1)
XYZxyz(4.3200, 2.3626, 18.9634)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7B #7B7918
analogous
#184C7B #181A7B #48187B
triadic
#181A7B #7B181A #1A7B18
tetradic
#181A7B #7B184C #7B7918 #187B48
square
#181A7B #7B184C #7B7918 #187B48
split-complementary
#181A7B #7B4818 #4C7B18
monochromatic
#05051A #0E0F48 #181A7B #2225AE #3639D8

Accessibility & contrast

On white

14.26
#181A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A7B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7B#FFFFFF#000000##FFFFFF
##181A7B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181a7b;
/* rgb */ color: rgb(24, 26, 123);
/* oklch */ color: oklch(30.2% 0.157 271.1);
Tailwind
colors: {
  custom: {
    50: '#6858a2',
    500: '#181a7b',
    950: '#000000',
  },
}
SCSS
$custom: #181a7b;
$custom-light: #6858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7b",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 238.788,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30184,
    "c": 0.15726,
    "h": 271.1
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#181A7B
secondary
#B0AD3F
accent
#E73EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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