#181E7B#181E7B

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

Color values

HEX#181E7B
RGBrgb(24, 30, 123)
HSLhsl(236, 67%, 29%)
HSVhsv(236, 80%, 48%)
CMYKcmyk(80.5%, 75.6%, 0%, 51.8%)
CIE-LABlab(18.15, 32.52, -52.87)
CIE-LCHlch(18.15, 62.07, 301.60°)
OKLaboklab(30.8% 0.0014 -0.1531)
OKLCHoklch(30.8% 0.153 270.5)
XYZxyz(4.4149, 2.5523, 18.9950)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E7B #7B7518
analogous
#18507B #181E7B #44187B
triadic
#181E7B #7B181E #1E7B18
tetradic
#181E7B #7B1850 #7B7518 #187B44
square
#181E7B #7B1850 #7B7518 #187B44
split-complementary
#181E7B #7B4418 #507B18
monochromatic
#05061A #0E1248 #181E7B #222AAE #3640D8

Accessibility & contrast

On white

13.90
#181E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E7B
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E7B#FFFFFF#000000##FFFFFF
##181E7B1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181e7b;
/* rgb */ color: rgb(24, 30, 123);
/* oklch */ color: oklch(30.8% 0.153 270.5);
Tailwind
colors: {
  custom: {
    50: '#685ba2',
    500: '#181e7b',
    950: '#000000',
  },
}
SCSS
$custom: #181e7b;
$custom-light: #685ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#181e7b",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 236.364,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.308,
    "c": 0.1531,
    "h": 270.5
  },
  "luminance": 0.02553
}

Semantic roles & 50–950 ramp

primary
#181E7B
secondary
#B0A93F
accent
#E03EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #181E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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