#1B2C87#1B2C87

#1B2C87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.152 H 268.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1B2C87
RGBrgb(27, 44, 135)
HSLhsl(231, 67%, 32%)
HSVhsv(231, 80%, 53%)
CMYKcmyk(80%, 67.4%, 0%, 47.1%)
CIE-LABlab(22.94, 28.14, -52.57)
CIE-LCHlch(22.94, 59.62, 298.16°)
OKLaboklab(34.68% -0.004 -0.1521)
OKLCHoklch(34.68% 0.152 268.5)
XYZxyz(5.7243, 3.7830, 23.3455)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C87 #87761B
analogous
#1B6287 #1B2C87 #401B87
triadic
#1B2C87 #871B2C #2C871B
tetradic
#1B2C87 #871B62 #87761B #1B8740
square
#1B2C87 #871B62 #87761B #1B8740
split-complementary
#1B2C87 #87401B #62871B
monochromatic
#070B21 #111B54 #1B2C87 #253DBA #435BD9

Accessibility & contrast

On white

11.95
#1B2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1B2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2C87
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2C87#FFFFFF#000000##FFFFFF
##1B2C871.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1b2c87;
/* rgb */ color: rgb(27, 44, 135);
/* oklch */ color: oklch(34.7% 0.152 268.5);
Tailwind
colors: {
  custom: {
    50: '#6b65ab',
    500: '#1b2c87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c87;
$custom-light: #6b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c87",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 230.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34683,
    "c": 0.15218,
    "h": 268.5
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#1B2C87
secondary
#BAA744
accent
#CF3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1B2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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