#181B6B#181B6B

#181B6B is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.135 H 272.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#181B6B
RGBrgb(24, 27, 107)
HSLhsl(238, 63%, 26%)
HSVhsv(238, 78%, 42%)
CMYKcmyk(77.6%, 74.8%, 0%, 58%)
CIE-LABlab(15.69, 28.49, -46.59)
CIE-LCHlch(15.69, 54.61, 301.45°)
OKLaboklab(28.51% 0.0055 -0.1348)
OKLCHoklch(28.51% 0.135 272.3)
XYZxyz(3.4216, 2.0392, 14.1204)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B6B #6B6818
analogous
#18446B #181B6B #3E186B
triadic
#181B6B #6B181B #1B6B18
tetradic
#181B6B #6B1844 #6B6818 #186B3E
square
#181B6B #6B1844 #6B6818 #186B3E
split-complementary
#181B6B #6B3E18 #446B18
monochromatic
#060619 #0D0E39 #181B6B #23289D #2E34CF

Accessibility & contrast

On white

14.91
#181B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181B6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B6B
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B6B#FFFFFF#000000##FFFFFF
##181B6B1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#00236A
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181b6b;
/* rgb */ color: rgb(24, 27, 107);
/* oklch */ color: oklch(28.5% 0.135 272.3);
Tailwind
colors: {
  custom: {
    50: '#645896',
    500: '#181b6b',
    950: '#000000',
  },
}
SCSS
$custom: #181b6b;
$custom-light: #645896;
$custom-dark: #000000;
JSON
{
  "hex": "#181b6b",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 237.831,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2851,
    "c": 0.13492,
    "h": 272.3
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#181B6B
secondary
#A19D3E
accent
#E041E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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