#1B187D#1B187D

#1B187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.161 H 272.5°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1B187D
RGBrgb(27, 24, 125)
HSLhsl(242, 68%, 29%)
HSVhsv(242, 81%, 49%)
CMYKcmyk(78.4%, 80.8%, 0%, 51%)
CIE-LABlab(17.30, 37.05, -55.54)
CIE-LCHlch(17.30, 66.77, 303.71°)
OKLaboklab(30.32% 0.0071 -0.1607)
OKLCHoklch(30.32% 0.161 272.5)
XYZxyz(4.4791, 2.3665, 19.6188)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B187D #7A7D18
analogous
#18487D #1B187D #4E187D
triadic
#1B187D #7D1B18 #187D1B
tetradic
#1B187D #7D1848 #7A7D18 #187D4E
square
#1B187D #7D1848 #7A7D18 #187D4E
split-complementary
#1B187D #7D4E18 #487D18
monochromatic
#06051A #100E4A #1B187D #2622B0 #3C37D9

Accessibility & contrast

On white

14.25
#1B187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B187D
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B187D#FFFFFF#000000##FFFFFF
##1B187D1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1b187d;
/* rgb */ color: rgb(27, 24, 125);
/* oklch */ color: oklch(30.3% 0.161 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a57a4',
    500: '#1b187d',
    950: '#000000',
  },
}
SCSS
$custom: #1b187d;
$custom-light: #6a57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b187d",
  "rgb": {
    "r": 27,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 241.782,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30315,
    "c": 0.1609,
    "h": 272.5
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#1B187D
secondary
#AEB23F
accent
#EB3DE6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B187D

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

Preview Lab → · Contrast checker → · Palette generator →

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