#181B79#181B79

#181B79 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.154 H 271.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#181B79
RGBrgb(24, 27, 121)
HSLhsl(238, 67%, 28%)
HSVhsv(238, 80%, 47%)
CMYKcmyk(80.2%, 77.7%, 0%, 52.5%)
CIE-LABlab(17.26, 33.65, -53.06)
CIE-LCHlch(17.26, 62.83, 302.38°)
OKLaboklab(30.1% 0.0031 -0.1536)
OKLCHoklch(30.1% 0.154 271.1)
XYZxyz(4.2186, 2.3581, 18.3183)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B79 #797618
analogous
#184B79 #181B79 #451879
triadic
#181B79 #79181B #1B7918
tetradic
#181B79 #79184B #797618 #187945
square
#181B79 #79184B #797618 #187945
split-complementary
#181B79 #794518 #4B7918
monochromatic
#05061A #0E1046 #181B79 #2226AC #353AD7

Accessibility & contrast

On white

14.27
#181B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B79
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B79#FFFFFF#000000##FFFFFF
##181B791.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002677
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181b79;
/* rgb */ color: rgb(24, 27, 121);
/* oklch */ color: oklch(30.1% 0.154 271.1);
Tailwind
colors: {
  custom: {
    50: '#6858a1',
    500: '#181b79',
    950: '#000000',
  },
}
SCSS
$custom: #181b79;
$custom-light: #6858a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181b79",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 238.144,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.301,
    "c": 0.15366,
    "h": 271.1
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#181B79
secondary
#AEAA3F
accent
#E43EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B79

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

Preview Lab → · Contrast checker → · Palette generator →

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