#181A8F#181A8F

#181A8F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.182 H 269.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#181A8F
RGBrgb(24, 26, 143)
HSLhsl(239, 71%, 33%)
HSVhsv(239, 83%, 56%)
CMYKcmyk(83.2%, 81.8%, 0%, 43.9%)
CIE-LABlab(19.70, 41.85, -62.91)
CIE-LCHlch(19.70, 75.56, 303.63°)
OKLaboklab(32.58% -0.0009 -0.1822)
OKLCHoklch(32.58% 0.182 269.7)
XYZxyz(5.7023, 2.9155, 26.2435)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8F #8F8D18
analogous
#18558F #181A8F #52188F
triadic
#181A8F #8F181A #1A8F18
tetradic
#181A8F #8F1855 #8F8D18 #188F52
square
#181A8F #8F1855 #8F8D18 #188F52
split-complementary
#181A8F #8F5218 #558F18
monochromatic
#060726 #0F105B #181A8F #2124C3 #4245DF

Accessibility & contrast

On white

13.26
#181A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#181A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A8F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8F#FFFFFF#000000##FFFFFF
##181A8F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181a8f;
/* rgb */ color: rgb(24, 26, 143);
/* oklch */ color: oklch(32.6% 0.182 269.7);
Tailwind
colors: {
  custom: {
    50: '#6e59b1',
    500: '#181a8f',
    950: '#000000',
  },
}
SCSS
$custom: #181a8f;
$custom-light: #6e59b1;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 238.992,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32584,
    "c": 0.18219,
    "h": 269.7
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#181A8F
secondary
#C0BE43
accent
#EB3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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