#181E7F#181E7F

#181E7F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 270.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#181E7F
RGBrgb(24, 30, 127)
HSLhsl(237, 68%, 30%)
HSVhsv(237, 81%, 50%)
CMYKcmyk(81.1%, 76.4%, 0%, 50.2%)
CIE-LABlab(18.60, 33.98, -54.67)
CIE-LCHlch(18.60, 64.37, 301.87°)
OKLaboklab(31.26% 0.0008 -0.1583)
OKLCHoklch(31.26% 0.158 270.3)
XYZxyz(4.6704, 2.6545, 20.3408)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7F #7F7918
analogous
#18527F #181E7F #46187F
triadic
#181E7F #7F181E #1E7F18
tetradic
#181E7F #7F1852 #7F7918 #187F46
square
#181E7F #7F1852 #7F7918 #187F46
split-complementary
#181E7F #7F4618 #527F18
monochromatic
#05061A #0E124C #181E7F #222AB2 #3841D9

Accessibility & contrast

On white

13.72
#181E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E7F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7F#FFFFFF#000000##FFFFFF
##181E7F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181e7f;
/* rgb */ color: rgb(24, 30, 127);
/* oklch */ color: oklch(31.3% 0.158 270.3);
Tailwind
colors: {
  custom: {
    50: '#695ba5',
    500: '#181e7f',
    950: '#000000',
  },
}
SCSS
$custom: #181e7f;
$custom-light: #695ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7f",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 236.505,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31255,
    "c": 0.15834,
    "h": 270.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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