#1B186C#1B186C

#1B186C is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.3% C 0.139 H 274.5°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#1B186C
RGBrgb(27, 24, 108)
HSLhsl(242, 64%, 26%)
HSVhsv(242, 78%, 42%)
CMYKcmyk(75%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.32, 31.09, -47.85)
CIE-LCHlch(15.32, 57.06, 303.02°)
OKLaboklab(28.33% 0.0109 -0.1384)
OKLCHoklch(28.33% 0.139 274.5)
XYZxyz(3.4845, 1.9687, 14.3808)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B186C #696C18
analogous
#183F6C #1B186C #45186C
triadic
#1B186C #6C1B18 #186C1B
tetradic
#1B186C #6C183F #696C18 #186C45
square
#1B186C #6C183F #696C18 #186C45
split-complementary
#1B186C #6C4518 #3F6C18
monochromatic
#060619 #0E0D3A #1B186C #28239E #342ED0

Accessibility & contrast

On white

15.07
#1B186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B186C
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B186C#FFFFFF#000000##FFFFFF
##1B186C1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b186c;
/* rgb */ color: rgb(27, 24, 108);
/* oklch */ color: oklch(28.3% 0.139 274.5);
Tailwind
colors: {
  custom: {
    50: '#665697',
    500: '#1b186c',
    950: '#000000',
  },
}
SCSS
$custom: #1b186c;
$custom-light: #665697;
$custom-dark: #000000;
JSON
{
  "hex": "#1b186c",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 242.143,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28333,
    "c": 0.13881,
    "h": 274.5
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B186C

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

Preview Lab → · Contrast checker → · Palette generator →

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