#181A7F#181A7F

#181A7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.162 H 270.8°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#181A7F
RGBrgb(24, 26, 127)
HSLhsl(239, 68%, 30%)
HSVhsv(239, 81%, 50%)
CMYKcmyk(81.1%, 79.5%, 0%, 50.2%)
CIE-LABlab(17.76, 36.38, -56.07)
CIE-LCHlch(17.76, 66.83, 302.98°)
OKLaboklab(30.66% 0.0023 -0.1624)
OKLCHoklch(30.66% 0.162 270.8)
XYZxyz(4.5755, 2.4648, 20.3092)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7F #7F7D18
analogous
#184E7F #181A7F #4A187F
triadic
#181A7F #7F181A #1A7F18
tetradic
#181A7F #7F184E #7F7D18 #187F4A
square
#181A7F #7F184E #7F7D18 #187F4A
split-complementary
#181A7F #7F4A18 #4E7F18
monochromatic
#05051A #0E0F4C #181A7F #2225B2 #383BD9

Accessibility & contrast

On white

14.07
#181A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A7F
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7F#FFFFFF#000000##FFFFFF
##181A7F1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181a7f;
/* rgb */ color: rgb(24, 26, 127);
/* oklch */ color: oklch(30.7% 0.162 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a58a5',
    500: '#181a7f',
    950: '#000000',
  },
}
SCSS
$custom: #181a7f;
$custom-light: #6a58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7f",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 238.835,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30656,
    "c": 0.16238,
    "h": 270.8
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#181A7F
secondary
#B3B13F
accent
#E83DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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