#181E7E#181E7E

#181E7E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.157 H 270.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#181E7E
RGBrgb(24, 30, 126)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(81%, 76.2%, 0%, 50.6%)
CIE-LABlab(18.49, 33.62, -54.22)
CIE-LCHlch(18.49, 63.80, 301.80°)
OKLaboklab(31.14% 0.001 -0.157)
OKLCHoklch(31.14% 0.157 270.4)
XYZxyz(4.6056, 2.6286, 19.9993)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7E #7E7818
analogous
#18517E #181E7E #45187E
triadic
#181E7E #7E181E #1E7E18
tetradic
#181E7E #7E1851 #7E7818 #187E45
square
#181E7E #7E1851 #7E7818 #187E45
split-complementary
#181E7E #7E4518 #517E18
monochromatic
#05061A #0E124B #181E7E #222AB1 #3741D9

Accessibility & contrast

On white

13.76
#181E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#181E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E7E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7E#FFFFFF#000000##FFFFFF
##181E7E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181e7e;
/* rgb */ color: rgb(24, 30, 126);
/* oklch */ color: oklch(31.1% 0.157 270.4);
Tailwind
colors: {
  custom: {
    50: '#695ba4',
    500: '#181e7e',
    950: '#000000',
  },
}
SCSS
$custom: #181e7e;
$custom-light: #695ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7e",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 236.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31141,
    "c": 0.15703,
    "h": 270.4
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#181E7E
secondary
#B2AC3F
accent
#E13DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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