#181B80#181B80

#181B80 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.163 H 270.6°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#181B80
RGBrgb(24, 27, 128)
HSLhsl(238, 68%, 30%)
HSVhsv(238, 81%, 50%)
CMYKcmyk(81.3%, 78.9%, 0%, 49.8%)
CIE-LABlab(18.08, 36.15, -56.17)
CIE-LCHlch(18.08, 66.80, 302.76°)
OKLaboklab(30.92% 0.0018 -0.1627)
OKLCHoklch(30.92% 0.163 270.6)
XYZxyz(4.6636, 2.5360, 20.6616)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B80 #807D18
analogous
#184F80 #181B80 #491880
triadic
#181B80 #80181B #1B8018
tetradic
#181B80 #80184F #807D18 #188049
square
#181B80 #80184F #807D18 #188049
split-complementary
#181B80 #804918 #4F8018
monochromatic
#05051A #0E104C #181B80 #2226B4 #393DDA

Accessibility & contrast

On white

13.93
#181B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B80
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B80#FFFFFF#000000##FFFFFF
##181B801.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181b80;
/* rgb */ color: rgb(24, 27, 128);
/* oklch */ color: oklch(30.9% 0.163 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a59a6',
    500: '#181b80',
    950: '#000000',
  },
}
SCSS
$custom: #181b80;
$custom-light: #6a59a6;
$custom-dark: #000000;
JSON
{
  "hex": "#181b80",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 238.269,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30918,
    "c": 0.16267,
    "h": 270.6
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#181B80
secondary
#B4B140
accent
#E63DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181B80

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

Preview Lab → · Contrast checker → · Palette generator →

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