#1B2886#1B2886

#1B2886 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.156 H 269.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1B2886
RGBrgb(27, 40, 134)
HSLhsl(233, 66%, 32%)
HSVhsv(233, 80%, 53%)
CMYKcmyk(79.9%, 70.1%, 0%, 47.5%)
CIE-LABlab(21.84, 30.44, -53.75)
CIE-LCHlch(21.84, 61.77, 299.52°)
OKLaboklab(33.85% -0.0017 -0.1556)
OKLCHoklch(33.85% 0.156 269.4)
XYZxyz(5.5124, 3.4712, 22.9291)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2886 #86791B
analogous
#1B5E86 #1B2886 #441B86
triadic
#1B2886 #861B28 #28861B
tetradic
#1B2886 #861B5E #86791B #1B8644
square
#1B2886 #861B5E #86791B #1B8644
split-complementary
#1B2886 #86441B #5E861B
monochromatic
#060A20 #111953 #1B2886 #2537B9 #4255D9

Accessibility & contrast

On white

12.39
#1B2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2886
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2886#FFFFFF#000000##FFFFFF
##1B28861.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004253
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2886;
/* rgb */ color: rgb(27, 40, 134);
/* oklch */ color: oklch(33.9% 0.156 269.4);
Tailwind
colors: {
  custom: {
    50: '#6b62aa',
    500: '#1b2886',
    950: '#000000',
  },
}
SCSS
$custom: #1b2886;
$custom-light: #6b62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2886",
  "rgb": {
    "r": 27,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 232.71,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3385,
    "c": 0.15562,
    "h": 269.4
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#1B2886
secondary
#B9AB44
accent
#D53EE9
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B2886

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

Preview Lab → · Contrast checker → · Palette generator →

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