#1B186B#1B186B

#1B186B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.137 H 274.6°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#1B186B
RGBrgb(27, 24, 107)
HSLhsl(242, 63%, 26%)
HSVhsv(242, 78%, 42%)
CMYKcmyk(74.8%, 77.6%, 0%, 58%)
CIE-LABlab(15.21, 30.73, -47.38)
CIE-LCHlch(15.21, 56.48, 302.97°)
OKLaboklab(28.22% 0.0111 -0.137)
OKLCHoklch(28.22% 0.137 274.6)
XYZxyz(3.4316, 1.9475, 14.1021)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B186B #686B18
analogous
#183E6B #1B186B #44186B
triadic
#1B186B #6B1B18 #186B1B
tetradic
#1B186B #6B183E #686B18 #186B44
square
#1B186B #6B183E #686B18 #186B44
split-complementary
#1B186B #6B4418 #3E6B18
monochromatic
#060619 #0E0D39 #1B186B #28239D #342ECF

Accessibility & contrast

On white

15.11
#1B186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B186B
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B186B#FFFFFF#000000##FFFFFF
##1B186B1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#00226A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1b186b;
/* rgb */ color: rgb(27, 24, 107);
/* oklch */ color: oklch(28.2% 0.137 274.6);
Tailwind
colors: {
  custom: {
    50: '#655696',
    500: '#1b186b',
    950: '#000000',
  },
}
SCSS
$custom: #1b186b;
$custom-light: #655696;
$custom-dark: #000000;
JSON
{
  "hex": "#1b186b",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 242.169,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28219,
    "c": 0.13746,
    "h": 274.6
  },
  "luminance": 0.01948
}

Semantic roles & 50–950 ramp

primary
#1B186B
secondary
#9DA13E
accent
#E641E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #1B186B

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

Preview Lab → · Contrast checker → · Palette generator →

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