#1B186A#1B186A

#1B186A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.136 H 274.8°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#1B186A
RGBrgb(27, 24, 106)
HSLhsl(242, 63%, 25%)
HSVhsv(242, 77%, 42%)
CMYKcmyk(74.5%, 77.4%, 0%, 58.4%)
CIE-LABlab(15.10, 30.37, -46.91)
CIE-LCHlch(15.10, 55.88, 302.92°)
OKLaboklab(28.11% 0.0113 -0.1356)
OKLCHoklch(28.11% 0.136 274.8)
XYZxyz(3.3793, 1.9266, 13.8266)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B186A #676A18
analogous
#183E6A #1B186A #44186A
triadic
#1B186A #6A1B18 #186A1B
tetradic
#1B186A #6A183E #676A18 #186A44
square
#1B186A #6A183E #676A18 #186A44
split-complementary
#1B186A #6A4418 #3E6A18
monochromatic
#060619 #0E0D38 #1B186A #28239C #342FCE

Accessibility & contrast

On white

15.16
#1B186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1B186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B186A
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B186A#FFFFFF#000000##FFFFFF
##1B186A1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002269
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b186a;
/* rgb */ color: rgb(27, 24, 106);
/* oklch */ color: oklch(28.1% 0.136 274.8);
Tailwind
colors: {
  custom: {
    50: '#655696',
    500: '#1b186a',
    950: '#000000',
  },
}
SCSS
$custom: #1b186a;
$custom-light: #655696;
$custom-dark: #000000;
JSON
{
  "hex": "#1b186a",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 242.195,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28106,
    "c": 0.13611,
    "h": 274.8
  },
  "luminance": 0.01927
}

Semantic roles & 50–950 ramp

primary
#1B186A
secondary
#9CA03E
accent
#E642E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1B186A

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

Preview Lab → · Contrast checker → · Palette generator →

#1B186A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva