#1B2B87#1B2B87

#1B2B87 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.153 H 268.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1B2B87
RGBrgb(27, 43, 135)
HSLhsl(231, 67%, 32%)
HSVhsv(231, 80%, 53%)
CMYKcmyk(80%, 68.1%, 0%, 47.1%)
CIE-LABlab(22.69, 28.82, -52.98)
CIE-LCHlch(22.69, 60.31, 298.54°)
OKLaboklab(34.5% -0.0034 -0.1534)
OKLCHoklch(34.5% 0.153 268.7)
XYZxyz(5.6875, 3.7094, 23.3332)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2B87 #87771B
analogous
#1B6187 #1B2B87 #411B87
triadic
#1B2B87 #871B2B #2B871B
tetradic
#1B2B87 #871B61 #87771B #1B8741
square
#1B2B87 #871B61 #87771B #1B8741
split-complementary
#1B2B87 #87411B #61871B
monochromatic
#070B21 #111B54 #1B2B87 #253BBA #4359D9

Accessibility & contrast

On white

12.06
#1B2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1B2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2B87
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2B87#FFFFFF#000000##FFFFFF
##1B2B871.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b2b87;
/* rgb */ color: rgb(27, 43, 135);
/* oklch */ color: oklch(34.5% 0.153 268.7);
Tailwind
colors: {
  custom: {
    50: '#6b64ab',
    500: '#1b2b87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2b87;
$custom-light: #6b64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2b87",
  "rgb": {
    "r": 27,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 231.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34497,
    "c": 0.1534,
    "h": 268.7
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#1B2B87
secondary
#BAA944
accent
#D03EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1B2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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