#1B2A87#1B2A87

#1B2A87 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.155 H 268.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#1B2A87
RGBrgb(27, 42, 135)
HSLhsl(232, 67%, 32%)
HSVhsv(232, 80%, 53%)
CMYKcmyk(80%, 68.9%, 0%, 47.1%)
CIE-LABlab(22.44, 29.49, -53.40)
CIE-LCHlch(22.44, 61.00, 298.91°)
OKLaboklab(34.31% -0.0029 -0.1546)
OKLCHoklch(34.31% 0.155 268.9)
XYZxyz(5.6516, 3.6376, 23.3212)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A87 #87781B
analogous
#1B6087 #1B2A87 #421B87
triadic
#1B2A87 #871B2A #2A871B
tetradic
#1B2A87 #871B60 #87781B #1B8742
square
#1B2A87 #871B60 #87781B #1B8742
split-complementary
#1B2A87 #87421B #60871B
monochromatic
#070A21 #111A54 #1B2A87 #253ABA #4358D9

Accessibility & contrast

On white

12.16
#1B2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A87
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A87#FFFFFF#000000##FFFFFF
##1B2A871.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2a87;
/* rgb */ color: rgb(27, 42, 135);
/* oklch */ color: oklch(34.3% 0.155 268.9);
Tailwind
colors: {
  custom: {
    50: '#6b63ab',
    500: '#1b2a87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a87;
$custom-light: #6b63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a87",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 231.667,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.1546,
    "h": 268.9
  },
  "luminance": 0.03638
}

Semantic roles & 50–950 ramp

primary
#1B2A87
secondary
#BAAA44
accent
#D23EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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