#181B6F#181B6F

#181B6F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.140 H 272.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#181B6F
RGBrgb(24, 27, 111)
HSLhsl(238, 64%, 26%)
HSVhsv(238, 78%, 44%)
CMYKcmyk(78.4%, 75.7%, 0%, 56.5%)
CIE-LABlab(16.13, 29.99, -48.47)
CIE-LCHlch(16.13, 57.00, 301.74°)
OKLaboklab(28.96% 0.0048 -0.1403)
OKLCHoklch(28.96% 0.14 272)
XYZxyz(3.6369, 2.1254, 15.2544)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B6F #6F6C18
analogous
#18476F #181B6F #41186F
triadic
#181B6F #6F181B #1B6F18
tetradic
#181B6F #6F1847 #6F6C18 #186F41
square
#181B6F #6F1847 #6F6C18 #186F41
split-complementary
#181B6F #6F4118 #476F18
monochromatic
#050619 #0D0F3D #181B6F #2327A1 #2F35D2

Accessibility & contrast

On white

14.73
#181B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B6F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B6F#FFFFFF#000000##FFFFFF
##181B6F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C71
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181b6f;
/* rgb */ color: rgb(24, 27, 111);
/* oklch */ color: oklch(29.0% 0.140 272.0);
Tailwind
colors: {
  custom: {
    50: '#655899',
    500: '#181b6f',
    950: '#000000',
  },
}
SCSS
$custom: #181b6f;
$custom-light: #655899;
$custom-dark: #000000;
JSON
{
  "hex": "#181b6f",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 237.931,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28957,
    "c": 0.14037,
    "h": 272
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#181B6F
secondary
#A5A13E
accent
#E240E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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