#181B76#181B76

#181B76 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.150 H 271.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#181B76
RGBrgb(24, 27, 118)
HSLhsl(238, 66%, 28%)
HSVhsv(238, 80%, 46%)
CMYKcmyk(79.7%, 77.1%, 0%, 53.7%)
CIE-LABlab(16.92, 32.56, -51.70)
CIE-LCHlch(16.92, 61.10, 302.21°)
OKLaboklab(29.75% 0.0036 -0.1497)
OKLCHoklch(29.75% 0.15 271.4)
XYZxyz(4.0375, 2.2856, 17.3644)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B76 #767318
analogous
#184A76 #181B76 #441876
triadic
#181B76 #76181B #1B7618
tetradic
#181B76 #76184A #767318 #187644
square
#181B76 #76184A #767318 #187644
split-complementary
#181B76 #764418 #4A7618
monochromatic
#050619 #0E0F43 #181B76 #2227A9 #3338D5

Accessibility & contrast

On white

14.41
#181B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B76
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B76#FFFFFF#000000##FFFFFF
##181B761.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181b76;
/* rgb */ color: rgb(24, 27, 118);
/* oklch */ color: oklch(29.8% 0.150 271.4);
Tailwind
colors: {
  custom: {
    50: '#67589f',
    500: '#181b76',
    950: '#000000',
  },
}
SCSS
$custom: #181b76;
$custom-light: #67589f;
$custom-dark: #000000;
JSON
{
  "hex": "#181b76",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 238.085,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29754,
    "c": 0.14972,
    "h": 271.4
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#181B76
secondary
#ABA83F
accent
#E43FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181B76

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

Preview Lab → · Contrast checker → · Palette generator →

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