#1B186F#1B186F

#1B186F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.143 H 274.1°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#1B186F
RGBrgb(27, 24, 111)
HSLhsl(242, 64%, 26%)
HSVhsv(242, 78%, 44%)
CMYKcmyk(75.7%, 78.4%, 0%, 56.5%)
CIE-LABlab(15.66, 32.17, -49.24)
CIE-LCHlch(15.66, 58.82, 303.15°)
OKLaboklab(28.68% 0.0103 -0.1424)
OKLCHoklch(28.68% 0.143 274.1)
XYZxyz(3.6469, 2.0336, 15.2362)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B186F #6C6F18
analogous
#18416F #1B186F #47186F
triadic
#1B186F #6F1B18 #186F1B
tetradic
#1B186F #6F1841 #6C6F18 #186F47
square
#1B186F #6F1841 #6C6F18 #186F47
split-complementary
#1B186F #6F4718 #416F18
monochromatic
#060519 #0F0D3D #1B186F #2723A1 #352FD2

Accessibility & contrast

On white

14.93
#1B186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1B186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B186F
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B186F#FFFFFF#000000##FFFFFF
##1B186F1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1b186f;
/* rgb */ color: rgb(27, 24, 111);
/* oklch */ color: oklch(28.7% 0.143 274.1);
Tailwind
colors: {
  custom: {
    50: '#665699',
    500: '#1b186f',
    950: '#000000',
  },
}
SCSS
$custom: #1b186f;
$custom-light: #665699;
$custom-dark: #000000;
JSON
{
  "hex": "#1b186f",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 242.069,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28676,
    "c": 0.1428,
    "h": 274.1
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#1B186F
secondary
#A1A53E
accent
#E740E2
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1B186F

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

Preview Lab → · Contrast checker → · Palette generator →

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