#181C8F#181C8F

#181C8F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.180 H 269.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#181C8F
RGBrgb(24, 28, 143)
HSLhsl(238, 71%, 33%)
HSVhsv(238, 83%, 56%)
CMYKcmyk(83.2%, 80.4%, 0%, 43.9%)
CIE-LABlab(20.07, 40.78, -62.30)
CIE-LCHlch(20.07, 74.45, 303.21°)
OKLaboklab(32.84% -0.0014 -0.1804)
OKLCHoklch(32.84% 0.18 269.6)
XYZxyz(5.7482, 3.0072, 26.2588)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C8F #8F8B18
analogous
#18588F #181C8F #4F188F
triadic
#181C8F #8F181C #1C8F18
tetradic
#181C8F #8F1858 #8F8B18 #188F4F
square
#181C8F #8F1858 #8F8B18 #188F4F
split-complementary
#181C8F #8F4F18 #588F18
monochromatic
#060726 #0F125B #181C8F #2126C3 #4247DF

Accessibility & contrast

On white

13.11
#181C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#181C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C8F
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C8F#FFFFFF#000000##FFFFFF
##181C8F1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #181c8f;
/* rgb */ color: rgb(24, 28, 143);
/* oklch */ color: oklch(32.8% 0.180 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ab1',
    500: '#181c8f',
    950: '#000000',
  },
}
SCSS
$custom: #181c8f;
$custom-light: #6e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#181c8f",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 237.983,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.18045,
    "h": 269.6
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#181C8F
secondary
#C0BC43
accent
#E83AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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