#181E68#181E68

#181E68 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.127 H 271.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#181E68
RGBrgb(24, 30, 104)
HSLhsl(236, 63%, 25%)
HSVhsv(236, 77%, 41%)
CMYKcmyk(76.9%, 71.2%, 0%, 59.2%)
CIE-LABlab(16.11, 25.33, -43.93)
CIE-LCHlch(16.11, 50.71, 299.96°)
OKLaboklab(28.72% 0.004 -0.127)
OKLCHoklch(28.72% 0.127 271.8)
XYZxyz(3.3388, 2.1219, 13.3276)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E68 #686218
analogous
#184668 #181E68 #3A1868
triadic
#181E68 #68181E #1E6818
tetradic
#181E68 #681846 #686218 #18683A
square
#181E68 #681846 #686218 #18683A
split-complementary
#181E68 #683A18 #466818
monochromatic
#060719 #0D1036 #181E68 #232C9A #2F3BCB

Accessibility & contrast

On white

14.74
#181E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181E68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E68
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E68#FFFFFF#000000##FFFFFF
##181E681.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#003240
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181e68;
/* rgb */ color: rgb(24, 30, 104);
/* oklch */ color: oklch(28.7% 0.127 271.8);
Tailwind
colors: {
  custom: {
    50: '#635a94',
    500: '#181e68',
    950: '#000000',
  },
}
SCSS
$custom: #181e68;
$custom-light: #635a94;
$custom-dark: #000000;
JSON
{
  "hex": "#181e68",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 235.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28718,
    "c": 0.1271,
    "h": 271.8
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#181E68
secondary
#9E973E
accent
#D942E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181E68

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

Preview Lab → · Contrast checker → · Palette generator →

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