#1B3187#1B3187

#1B3187 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.6% C 0.146 H 267.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1B3187
RGBrgb(27, 49, 135)
HSLhsl(228, 67%, 32%)
HSVhsv(228, 80%, 53%)
CMYKcmyk(80%, 63.7%, 0%, 47.1%)
CIE-LABlab(24.25, 24.72, -50.42)
CIE-LCHlch(24.25, 56.15, 296.12°)
OKLaboklab(35.65% -0.0071 -0.1458)
OKLCHoklch(35.65% 0.146 267.2)
XYZxyz(5.9220, 4.1782, 23.4113)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3187 #87711B
analogous
#1B6787 #1B3187 #3B1B87
triadic
#1B3187 #871B31 #31871B
tetradic
#1B3187 #871B67 #87711B #1B873B
square
#1B3187 #871B67 #87711B #1B873B
split-complementary
#1B3187 #873B1B #67871B
monochromatic
#070C21 #111E54 #1B3187 #2544BA #4362D9

Accessibility & contrast

On white

11.44
#1B3187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1B3187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3187
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3187#FFFFFF#000000##FFFFFF
##1B31871.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004757
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b3187;
/* rgb */ color: rgb(27, 49, 135);
/* oklch */ color: oklch(35.6% 0.146 267.2);
Tailwind
colors: {
  custom: {
    50: '#6a68ab',
    500: '#1b3187',
    950: '#000000',
  },
}
SCSS
$custom: #1b3187;
$custom-light: #6a68ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3187",
  "rgb": {
    "r": 27,
    "g": 49,
    "b": 135
  },
  "hsl": {
    "h": 227.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35649,
    "c": 0.14597,
    "h": 267.2
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

primary
#1B3187
secondary
#BAA244
accent
#C73EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B3187

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

Preview Lab → · Contrast checker → · Palette generator →

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