#181B6E#181B6E

#181B6E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.139 H 272.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#181B6E
RGBrgb(24, 27, 110)
HSLhsl(238, 64%, 26%)
HSVhsv(238, 78%, 43%)
CMYKcmyk(78.2%, 75.5%, 0%, 56.9%)
CIE-LABlab(16.02, 29.61, -48.01)
CIE-LCHlch(16.02, 56.41, 301.67°)
OKLaboklab(28.84% 0.005 -0.1389)
OKLCHoklch(28.84% 0.139 272.1)
XYZxyz(3.5821, 2.1035, 14.9661)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B6E #6E6B18
analogous
#18466E #181B6E #40186E
triadic
#181B6E #6E181B #1B6E18
tetradic
#181B6E #6E1846 #6E6B18 #186E40
square
#181B6E #6E1846 #6E6B18 #186E40
split-complementary
#181B6E #6E4018 #466E18
monochromatic
#050619 #0D0F3C #181B6E #2327A0 #2F35D2

Accessibility & contrast

On white

14.78
#181B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B6E
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B6E#FFFFFF#000000##FFFFFF
##181B6E1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00246C
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181b6e;
/* rgb */ color: rgb(24, 27, 110);
/* oklch */ color: oklch(28.8% 0.139 272.1);
Tailwind
colors: {
  custom: {
    50: '#655899',
    500: '#181b6e',
    950: '#000000',
  },
}
SCSS
$custom: #181b6e;
$custom-light: #655899;
$custom-dark: #000000;
JSON
{
  "hex": "#181b6e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 237.907,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28844,
    "c": 0.13902,
    "h": 272.1
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#181B6E
secondary
#A4A03E
accent
#E141E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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