#181B8F#181B8F

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

Color values

HEX#181B8F
RGBrgb(24, 27, 143)
HSLhsl(238, 71%, 33%)
HSVhsv(238, 83%, 56%)
CMYKcmyk(83.2%, 81.1%, 0%, 43.9%)
CIE-LABlab(19.89, 41.32, -62.61)
CIE-LCHlch(19.89, 75.01, 303.42°)
OKLaboklab(32.71% -0.0011 -0.1813)
OKLCHoklch(32.71% 0.181 269.6)
XYZxyz(5.7249, 2.9606, 26.2510)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B8F #8F8C18
analogous
#18578F #181B8F #50188F
triadic
#181B8F #8F181B #1B8F18
tetradic
#181B8F #8F1857 #8F8C18 #188F50
square
#181B8F #8F1857 #8F8C18 #188F50
split-complementary
#181B8F #8F5018 #578F18
monochromatic
#060726 #0F115B #181B8F #2125C3 #4246DF

Accessibility & contrast

On white

13.19
#181B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#181B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B8F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B8F#FFFFFF#000000##FFFFFF
##181B8F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b8f;
/* rgb */ color: rgb(24, 27, 143);
/* oklch */ color: oklch(32.7% 0.181 269.6);
Tailwind
colors: {
  custom: {
    50: '#6e5ab1',
    500: '#181b8f',
    950: '#000000',
  },
}
SCSS
$custom: #181b8f;
$custom-light: #6e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#181b8f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 238.487,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32712,
    "c": 0.18132,
    "h": 269.6
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#181B8F
secondary
#C0BD43
accent
#E93AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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