#181B7B#181B7B

#181B7B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.156 H 271.0°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#181B7B
RGBrgb(24, 27, 123)
HSLhsl(238, 67%, 29%)
HSVhsv(238, 80%, 48%)
CMYKcmyk(80.5%, 78%, 0%, 51.8%)
CIE-LABlab(17.50, 34.37, -53.95)
CIE-LCHlch(17.50, 63.97, 302.50°)
OKLaboklab(30.33% 0.0027 -0.1562)
OKLCHoklch(30.33% 0.156 271)
XYZxyz(4.3426, 2.4076, 18.9709)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B7B #7B7818
analogous
#184D7B #181B7B #47187B
triadic
#181B7B #7B181B #1B7B18
tetradic
#181B7B #7B184D #7B7818 #187B47
square
#181B7B #7B184D #7B7818 #187B47
split-complementary
#181B7B #7B4718 #4D7B18
monochromatic
#05061A #0E1048 #181B7B #2226AE #363BD8

Accessibility & contrast

On white

14.17
#181B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B7B
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B7B#FFFFFF#000000##FFFFFF
##181B7B1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181b7b;
/* rgb */ color: rgb(24, 27, 123);
/* oklch */ color: oklch(30.3% 0.156 271.0);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#181b7b',
    950: '#000000',
  },
}
SCSS
$custom: #181b7b;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#181b7b",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 238.182,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30332,
    "c": 0.15625,
    "h": 271
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#181B7B
secondary
#B0AC3F
accent
#E53EEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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