#1B2187#1B2187

#1B2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.165 H 270.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#1B2187
RGBrgb(27, 33, 135)
HSLhsl(237, 67%, 32%)
HSVhsv(237, 80%, 53%)
CMYKcmyk(80%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.32, 35.28, -56.88)
CIE-LCHlch(20.32, 66.93, 301.81°)
OKLaboklab(32.79% 0.0015 -0.1647)
OKLCHoklch(32.79% 0.165 270.5)
XYZxyz(5.3675, 3.0694, 23.2265)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2187 #87811B
analogous
#1B5787 #1B2187 #4B1B87
triadic
#1B2187 #871B21 #21871B
tetradic
#1B2187 #871B57 #87811B #1B874B
square
#1B2187 #871B57 #87811B #1B874B
split-complementary
#1B2187 #874B1B #57871B
monochromatic
#070821 #111554 #1B2187 #252DBA #434BD9

Accessibility & contrast

On white

13.01
#1B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2187
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2187#FFFFFF#000000##FFFFFF
##1B21871.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1b2187;
/* rgb */ color: rgb(27, 33, 135);
/* oklch */ color: oklch(32.8% 0.165 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c5dab',
    500: '#1b2187',
    950: '#000000',
  },
}
SCSS
$custom: #1b2187;
$custom-light: #6c5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2187",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 236.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.16473,
    "h": 270.5
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#1B2187
secondary
#BAB444
accent
#E03EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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