#181E8F#181E8F

#181E8F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.179 H 269.4°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#181E8F
RGBrgb(24, 30, 143)
HSLhsl(237, 71%, 33%)
HSVhsv(237, 83%, 56%)
CMYKcmyk(83.2%, 79%, 0%, 43.9%)
CIE-LABlab(20.46, 39.66, -61.65)
CIE-LCHlch(20.46, 73.31, 302.75°)
OKLaboklab(33.12% -0.0019 -0.1786)
OKLCHoklch(33.12% 0.179 269.4)
XYZxyz(5.7972, 3.1052, 26.2751)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E8F #8F8918
analogous
#18598F #181E8F #4E188F
triadic
#181E8F #8F181E #1E8F18
tetradic
#181E8F #8F1859 #8F8918 #188F4E
square
#181E8F #8F1859 #8F8918 #188F4E
split-complementary
#181E8F #8F4E18 #598F18
monochromatic
#060826 #0F135B #181E8F #2129C3 #424ADF

Accessibility & contrast

On white

12.95
#181E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#181E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E8F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E8F#FFFFFF#000000##FFFFFF
##181E8F1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #181e8f;
/* rgb */ color: rgb(24, 30, 143);
/* oklch */ color: oklch(33.1% 0.179 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e5cb1',
    500: '#181e8f',
    950: '#000000',
  },
}
SCSS
$custom: #181e8f;
$custom-light: #6e5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#181e8f",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 236.975,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.17862,
    "h": 269.4
  },
  "luminance": 0.03106
}

Semantic roles & 50–950 ramp

primary
#181E8F
secondary
#C0BA43
accent
#E53AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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