#181B86#181B86

#181B86 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.170 H 270.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#181B86
RGBrgb(24, 27, 134)
HSLhsl(238, 70%, 31%)
HSVhsv(238, 82%, 53%)
CMYKcmyk(82.1%, 79.9%, 0%, 47.5%)
CIE-LABlab(18.79, 38.24, -58.78)
CIE-LCHlch(18.79, 70.13, 303.05°)
OKLaboklab(31.63% 0.0006 -0.1702)
OKLCHoklch(31.63% 0.17 270.2)
XYZxyz(5.0702, 2.6987, 22.8033)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B86 #868318
analogous
#185286 #181B86 #4C1886
triadic
#181B86 #86181B #1B8618
tetradic
#181B86 #861852 #868318 #18864C
square
#181B86 #861852 #868318 #18864C
split-complementary
#181B86 #864C18 #528618
monochromatic
#05061E #0F1152 #181B86 #2125BA #3C41DC

Accessibility & contrast

On white

13.64
#181B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B86
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B86#FFFFFF#000000##FFFFFF
##181B861.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181b86;
/* rgb */ color: rgb(24, 27, 134);
/* oklch */ color: oklch(31.6% 0.170 270.2);
Tailwind
colors: {
  custom: {
    50: '#6b59aa',
    500: '#181b86',
    950: '#000000',
  },
}
SCSS
$custom: #181b86;
$custom-light: #6b59aa;
$custom-dark: #000000;
JSON
{
  "hex": "#181b86",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 238.364,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3163,
    "c": 0.17024,
    "h": 270.2
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#181B86
secondary
#BAB640
accent
#E83BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181B86

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

Preview Lab → · Contrast checker → · Palette generator →

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