#1B186D#1B186D

#1B186D is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.140 H 274.4°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#1B186D
RGBrgb(27, 24, 109)
HSLhsl(242, 64%, 26%)
HSVhsv(242, 78%, 43%)
CMYKcmyk(75.2%, 78%, 0%, 57.3%)
CIE-LABlab(15.44, 31.45, -48.31)
CIE-LCHlch(15.44, 57.65, 303.06°)
OKLaboklab(28.45% 0.0107 -0.1397)
OKLCHoklch(28.45% 0.14 274.4)
XYZxyz(3.5380, 1.9901, 14.6627)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B186D #6A6D18
analogous
#183F6D #1B186D #45186D
triadic
#1B186D #6D1B18 #186D1B
tetradic
#1B186D #6D183F #6A6D18 #186D45
square
#1B186D #6D183F #6A6D18 #186D45
split-complementary
#1B186D #6D4518 #3F6D18
monochromatic
#060619 #0F0D3B #1B186D #27239F #342ED1

Accessibility & contrast

On white

15.02
#1B186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1B186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B186D
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B186D#FFFFFF#000000##FFFFFF
##1B186D1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003141
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b186d;
/* rgb */ color: rgb(27, 24, 109);
/* oklch */ color: oklch(28.4% 0.140 274.4);
Tailwind
colors: {
  custom: {
    50: '#665698',
    500: '#1b186d',
    950: '#000000',
  },
}
SCSS
$custom: #1b186d;
$custom-light: #665698;
$custom-dark: #000000;
JSON
{
  "hex": "#1b186d",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 242.118,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28447,
    "c": 0.14014,
    "h": 274.4
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

primary
#1B186D
secondary
#9FA33E
accent
#E741E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B186D

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

Preview Lab → · Contrast checker → · Palette generator →

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