#181B71#181B71

#181B71 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.143 H 271.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#181B71
RGBrgb(24, 27, 113)
HSLhsl(238, 65%, 27%)
HSVhsv(238, 79%, 44%)
CMYKcmyk(78.8%, 76.1%, 0%, 55.7%)
CIE-LABlab(16.35, 30.73, -49.40)
CIE-LCHlch(16.35, 58.18, 301.88°)
OKLaboklab(29.18% 0.0045 -0.143)
OKLCHoklch(29.18% 0.143 271.8)
XYZxyz(3.7483, 2.1699, 15.8409)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B71 #716E18
analogous
#184871 #181B71 #421871
triadic
#181B71 #71181B #1B7118
tetradic
#181B71 #711848 #716E18 #187142
square
#181B71 #711848 #716E18 #187142
split-complementary
#181B71 #714218 #487118
monochromatic
#050619 #0D0F3F #181B71 #2327A3 #3036D3

Accessibility & contrast

On white

14.64
#181B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B71
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B71#FFFFFF#000000##FFFFFF
##181B711.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181b71;
/* rgb */ color: rgb(24, 27, 113);
/* oklch */ color: oklch(29.2% 0.143 271.8);
Tailwind
colors: {
  custom: {
    50: '#66589b',
    500: '#181b71',
    950: '#000000',
  },
}
SCSS
$custom: #181b71;
$custom-light: #66589b;
$custom-dark: #000000;
JSON
{
  "hex": "#181b71",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 237.978,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29183,
    "c": 0.14307,
    "h": 271.8
  },
  "luminance": 0.0217
}

Semantic roles & 50–950 ramp

primary
#181B71
secondary
#A6A33E
accent
#E240E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B71

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

Preview Lab → · Contrast checker → · Palette generator →

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