#1B2E87#1B2E87

#1B2E87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.150 H 268.0°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#1B2E87
RGBrgb(27, 46, 135)
HSLhsl(229, 67%, 32%)
HSVhsv(229, 80%, 53%)
CMYKcmyk(80%, 65.9%, 0%, 47.1%)
CIE-LABlab(23.46, 26.78, -51.72)
CIE-LCHlch(23.46, 58.24, 297.38°)
OKLaboklab(35.06% -0.0052 -0.1496)
OKLCHoklch(35.06% 0.15 268)
XYZxyz(5.8006, 3.9356, 23.3709)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2E87 #87741B
analogous
#1B6487 #1B2E87 #3E1B87
triadic
#1B2E87 #871B2E #2E871B
tetradic
#1B2E87 #871B64 #87741B #1B873E
square
#1B2E87 #871B64 #87741B #1B873E
split-complementary
#1B2E87 #873E1B #64871B
monochromatic
#070B21 #111D54 #1B2E87 #253FBA #435DD9

Accessibility & contrast

On white

11.75
#1B2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1B2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2E87
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2E87#FFFFFF#000000##FFFFFF
##1B2E871.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1b2e87;
/* rgb */ color: rgb(27, 46, 135);
/* oklch */ color: oklch(35.1% 0.150 268.0);
Tailwind
colors: {
  custom: {
    50: '#6b66ab',
    500: '#1b2e87',
    950: '#000000',
  },
}
SCSS
$custom: #1b2e87;
$custom-light: #6b66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2e87",
  "rgb": {
    "r": 27,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 229.444,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35062,
    "c": 0.14973,
    "h": 268
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#1B2E87
secondary
#BAA544
accent
#CB3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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