#181E7A#181E7A

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

Color values

HEX#181E7A
RGBrgb(24, 30, 122)
HSLhsl(236, 67%, 29%)
HSVhsv(236, 80%, 48%)
CMYKcmyk(80.3%, 75.4%, 0%, 52.2%)
CIE-LABlab(18.04, 32.15, -52.41)
CIE-LCHlch(18.04, 61.49, 301.53°)
OKLaboklab(30.69% 0.0016 -0.1518)
OKLCHoklch(30.69% 0.152 270.6)
XYZxyz(4.3526, 2.5274, 18.6670)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7A #7A7418
analogous
#184F7A #181E7A #43187A
triadic
#181E7A #7A181E #1E7A18
tetradic
#181E7A #7A184F #7A7418 #187A43
square
#181E7A #7A184F #7A7418 #187A43
split-complementary
#181E7A #7A4318 #4F7A18
monochromatic
#05061A #0E1147 #181E7A #222BAD #353FD7

Accessibility & contrast

On white

13.95
#181E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E7A
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7A#FFFFFF#000000##FFFFFF
##181E7A1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181e7a;
/* rgb */ color: rgb(24, 30, 122);
/* oklch */ color: oklch(30.7% 0.152 270.6);
Tailwind
colors: {
  custom: {
    50: '#685aa1',
    500: '#181e7a',
    950: '#000000',
  },
}
SCSS
$custom: #181e7a;
$custom-light: #685aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7a",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 236.327,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30688,
    "c": 0.15178,
    "h": 270.6
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#181E7A
secondary
#AFA83F
accent
#DF3EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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