#181B95#181B95

#181B95 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.189 H 269.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#181B95
RGBrgb(24, 27, 149)
HSLhsl(239, 72%, 34%)
HSVhsv(239, 84%, 58%)
CMYKcmyk(83.9%, 81.9%, 0%, 41.6%)
CIE-LABlab(20.62, 43.32, -65.10)
CIE-LCHlch(20.62, 78.20, 303.64°)
OKLaboklab(33.44% -0.0023 -0.1885)
OKLCHoklch(33.44% 0.189 269.3)
XYZxyz(6.1916, 3.1472, 28.7091)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B95 #959218
analogous
#185A95 #181B95 #541895
triadic
#181B95 #95181B #1B9518
tetradic
#181B95 #95185A #959218 #189554
square
#181B95 #95185A #959218 #189554
split-complementary
#181B95 #955418 #5A9518
monochromatic
#07082C #101160 #181B95 #2025CA #464AE1

Accessibility & contrast

On white

12.89
#181B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#181B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B95
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B95#FFFFFF#000000##FFFFFF
##181B951.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003898
Deuteranopia (green-blind)
#002B93
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #181b95;
/* rgb */ color: rgb(24, 27, 149);
/* oklch */ color: oklch(33.4% 0.189 269.3);
Tailwind
colors: {
  custom: {
    50: '#705ab6',
    500: '#181b95',
    950: '#000000',
  },
}
SCSS
$custom: #181b95;
$custom-light: #705ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#181b95",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 238.56,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33442,
    "c": 0.18856,
    "h": 269.3
  },
  "luminance": 0.03148
}

Semantic roles & 50–950 ramp

primary
#181B95
secondary
#C2BF46
accent
#EB39EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181B95

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

Preview Lab → · Contrast checker → · Palette generator →

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