#1B2884#1B2884

#1B2884 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.153 H 269.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#1B2884
RGBrgb(27, 40, 132)
HSLhsl(233, 66%, 31%)
HSVhsv(233, 80%, 52%)
CMYKcmyk(79.5%, 69.7%, 0%, 48.2%)
CIE-LABlab(21.64, 29.68, -52.82)
CIE-LCHlch(21.64, 60.59, 299.33°)
OKLaboklab(33.64% -0.0015 -0.1529)
OKLCHoklch(33.64% 0.153 269.4)
XYZxyz(5.3742, 3.4159, 22.2014)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2884 #84771B
analogous
#1B5C84 #1B2884 #421B84
triadic
#1B2884 #841B28 #28841B
tetradic
#1B2884 #841B5C #84771B #1B8442
square
#1B2884 #841B5C #84771B #1B8442
split-complementary
#1B2884 #84421B #5C841B
monochromatic
#06091E #111951 #1B2884 #2537B7 #4154D8

Accessibility & contrast

On white

12.47
#1B2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2884
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2884#FFFFFF#000000##FFFFFF
##1B28841.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2884;
/* rgb */ color: rgb(27, 40, 132);
/* oklch */ color: oklch(33.6% 0.153 269.4);
Tailwind
colors: {
  custom: {
    50: '#6a62a9',
    500: '#1b2884',
    950: '#000000',
  },
}
SCSS
$custom: #1b2884;
$custom-light: #6a62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2884",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 232.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33642,
    "c": 0.15292,
    "h": 269.4
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#1B2884
secondary
#B7A943
accent
#D43FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1B2884

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

Preview Lab → · Contrast checker → · Palette generator →

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