#1B2386#1B2386

#1B2386 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.161 H 270.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#1B2386
RGBrgb(27, 35, 134)
HSLhsl(236, 66%, 32%)
HSVhsv(236, 80%, 53%)
CMYKcmyk(79.9%, 73.9%, 0%, 47.5%)
CIE-LABlab(20.66, 33.67, -55.70)
CIE-LCHlch(20.66, 65.08, 301.16°)
OKLaboklab(33% 0.0008 -0.1613)
OKLCHoklch(33% 0.161 270.3)
XYZxyz(5.3546, 3.1557, 22.8765)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2386 #867E1B
analogous
#1B5986 #1B2386 #491B86
triadic
#1B2386 #861B23 #23861B
tetradic
#1B2386 #861B59 #867E1B #1B8649
square
#1B2386 #861B59 #867E1B #1B8649
split-complementary
#1B2386 #86491B #59861B
monochromatic
#060820 #111653 #1B2386 #2530B9 #424ED9

Accessibility & contrast

On white

12.87
#1B2386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1B2386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2386
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2386#FFFFFF#000000##FFFFFF
##1B23861.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002C84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2386;
/* rgb */ color: rgb(27, 35, 134);
/* oklch */ color: oklch(33.0% 0.161 270.3);
Tailwind
colors: {
  custom: {
    50: '#6b5eaa',
    500: '#1b2386',
    950: '#000000',
  },
}
SCSS
$custom: #1b2386;
$custom-light: #6b5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2386",
  "rgb": {
    "r": 27,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 235.514,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.16129,
    "h": 270.3
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#1B2386
secondary
#B9B044
accent
#DD3EE9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1B2386

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

Preview Lab → · Contrast checker → · Palette generator →

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