#181A7E#181A7E

#181A7E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.161 H 270.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#181A7E
RGBrgb(24, 26, 126)
HSLhsl(239, 68%, 29%)
HSVhsv(239, 81%, 49%)
CMYKcmyk(81%, 79.4%, 0%, 50.6%)
CIE-LABlab(17.64, 36.03, -55.63)
CIE-LCHlch(17.64, 66.28, 302.93°)
OKLaboklab(30.54% 0.0025 -0.1611)
OKLCHoklch(30.54% 0.161 270.9)
XYZxyz(4.5107, 2.4388, 19.9676)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A7E #7E7C18
analogous
#184D7E #181A7E #49187E
triadic
#181A7E #7E181A #1A7E18
tetradic
#181A7E #7E184D #7E7C18 #187E49
square
#181A7E #7E184D #7E7C18 #187E49
split-complementary
#181A7E #7E4918 #4D7E18
monochromatic
#05051A #0E0F4B #181A7E #2225B1 #373BD9

Accessibility & contrast

On white

14.11
#181A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A7E
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A7E#FFFFFF#000000##FFFFFF
##181A7E1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181a7e;
/* rgb */ color: rgb(24, 26, 126);
/* oklch */ color: oklch(30.5% 0.161 270.9);
Tailwind
colors: {
  custom: {
    50: '#6958a5',
    500: '#181a7e',
    950: '#000000',
  },
}
SCSS
$custom: #181a7e;
$custom-light: #6958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#181a7e",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 238.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30538,
    "c": 0.1611,
    "h": 270.9
  },
  "luminance": 0.02439
}

Semantic roles & 50–950 ramp

primary
#181A7E
secondary
#B2B03F
accent
#E73DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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