#1B187C#1B187C

#1B187C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.160 H 272.6°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1B187C
RGBrgb(27, 24, 124)
HSLhsl(242, 68%, 29%)
HSVhsv(242, 81%, 49%)
CMYKcmyk(78.2%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.18, 36.71, -55.10)
CIE-LCHlch(17.18, 66.21, 303.67°)
OKLaboklab(30.2% 0.0074 -0.1595)
OKLCHoklch(30.2% 0.16 272.6)
XYZxyz(4.4155, 2.3410, 19.2840)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B187C #797C18
analogous
#18477C #1B187C #4D187C
triadic
#1B187C #7C1B18 #187C1B
tetradic
#1B187C #7C1847 #797C18 #187C4D
square
#1B187C #7C1847 #797C18 #187C4D
split-complementary
#1B187C #7C4D18 #477C18
monochromatic
#06051A #100E49 #1B187C #2622AF #3B36D8

Accessibility & contrast

On white

14.30
#1B187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1B187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B187C
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B187C#FFFFFF#000000##FFFFFF
##1B187C1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b187c;
/* rgb */ color: rgb(27, 24, 124);
/* oklch */ color: oklch(30.2% 0.160 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a57a3',
    500: '#1b187c',
    950: '#000000',
  },
}
SCSS
$custom: #1b187c;
$custom-light: #6a57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b187c",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 241.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30196,
    "c": 0.15964,
    "h": 272.6
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#1B187C
secondary
#ADB13F
accent
#EA3DE5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B187C

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

Preview Lab → · Contrast checker → · Palette generator →

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