#181E62#181E62

#181E62 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.1% C 0.118 H 272.2°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#181E62
RGBrgb(24, 30, 98)
HSLhsl(235, 61%, 24%)
HSVhsv(235, 76%, 38%)
CMYKcmyk(75.5%, 69.4%, 0%, 61.6%)
CIE-LABlab(15.51, 22.98, -40.97)
CIE-LCHlch(15.51, 46.97, 299.29°)
OKLaboklab(28.09% 0.0046 -0.1184)
OKLCHoklch(28.09% 0.118 272.2)
XYZxyz(3.0448, 2.0043, 11.7793)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E62 #625C18
analogous
#184362 #181E62 #371862
triadic
#181E62 #62181E #1E6218
tetradic
#181E62 #621843 #625C18 #186237
square
#181E62 #621843 #625C18 #186237
split-complementary
#181E62 #623718 #436218
monochromatic
#060819 #0C0F31 #181E62 #242D93 #303CC4

Accessibility & contrast

On white

14.99
#181E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E62
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E62#FFFFFF#000000##FFFFFF
##181E621.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181e62;
/* rgb */ color: rgb(24, 30, 98);
/* oklch */ color: oklch(28.1% 0.118 272.2);
Tailwind
colors: {
  custom: {
    50: '#615a8f',
    500: '#181e62',
    950: '#000000',
  },
}
SCSS
$custom: #181e62;
$custom-light: #615a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#181e62",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 98
  },
  "hsl": {
    "h": 235.135,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28093,
    "c": 0.11846,
    "h": 272.2
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#181E62
secondary
#98913E
accent
#D744E4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #181E62

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

Preview Lab → · Contrast checker → · Palette generator →

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