#1B2D87#1B2D87

#1B2D87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.151 H 268.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#1B2D87
RGBrgb(27, 45, 135)
HSLhsl(230, 67%, 32%)
HSVhsv(230, 80%, 53%)
CMYKcmyk(80%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.20, 27.46, -52.14)
CIE-LCHlch(23.20, 58.93, 297.77°)
OKLaboklab(34.87% -0.0046 -0.1509)
OKLCHoklch(34.87% 0.151 268.3)
XYZxyz(5.7620, 3.8584, 23.3580)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D87 #87751B
analogous
#1B6387 #1B2D87 #3F1B87
triadic
#1B2D87 #871B2D #2D871B
tetradic
#1B2D87 #871B63 #87751B #1B873F
square
#1B2D87 #871B63 #87751B #1B873F
split-complementary
#1B2D87 #873F1B #63871B
monochromatic
#070B21 #111C54 #1B2D87 #253EBA #435CD9

Accessibility & contrast

On white

11.85
#1B2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1B2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D87
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D87#FFFFFF#000000##FFFFFF
##1B2D871.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2d87;
/* rgb */ color: rgb(27, 45, 135);
/* oklch */ color: oklch(34.9% 0.151 268.3);
Tailwind
colors: {
  custom: {
    50: '#6b65ab',
    500: '#1b2d87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d87;
$custom-light: #6b65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d87",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 230,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34872,
    "c": 0.15096,
    "h": 268.3
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#1B2D87
secondary
#BAA644
accent
#CD3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1B2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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