#181E7C#181E7C

#181E7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.154 H 270.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#181E7C
RGBrgb(24, 30, 124)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 49%)
CMYKcmyk(80.6%, 75.8%, 0%, 51.4%)
CIE-LABlab(18.27, 32.89, -53.32)
CIE-LCHlch(18.27, 62.65, 301.67°)
OKLaboklab(30.91% 0.0013 -0.1544)
OKLCHoklch(30.91% 0.154 270.5)
XYZxyz(4.4778, 2.5775, 19.3264)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7C #7C7618
analogous
#18507C #181E7C #44187C
triadic
#181E7C #7C181E #1E7C18
tetradic
#181E7C #7C1850 #7C7618 #187C44
square
#181E7C #7C1850 #7C7618 #187C44
split-complementary
#181E7C #7C4418 #507C18
monochromatic
#05061A #0E1249 #181E7C #222AAF #3640D8

Accessibility & contrast

On white

13.86
#181E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E7C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7C#FFFFFF#000000##FFFFFF
##181E7C1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181e7c;
/* rgb */ color: rgb(24, 30, 124);
/* oklch */ color: oklch(30.9% 0.154 270.5);
Tailwind
colors: {
  custom: {
    50: '#685ba3',
    500: '#181e7c',
    950: '#000000',
  },
}
SCSS
$custom: #181e7c;
$custom-light: #685ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7c",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 236.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30914,
    "c": 0.15442,
    "h": 270.5
  },
  "luminance": 0.02578
}

Semantic roles & 50–950 ramp

primary
#181E7C
secondary
#B1AA3F
accent
#E03DEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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