#1B3287#1B3287

#1B3287 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.8% C 0.145 H 266.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#1B3287
RGBrgb(27, 50, 135)
HSLhsl(227, 67%, 32%)
HSVhsv(227, 80%, 53%)
CMYKcmyk(80%, 63%, 0%, 47.1%)
CIE-LABlab(24.52, 24.03, -49.98)
CIE-LCHlch(24.52, 55.45, 295.68°)
OKLaboklab(35.85% -0.0077 -0.1445)
OKLCHoklch(35.85% 0.145 266.9)
XYZxyz(5.9642, 4.2628, 23.4254)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3287 #87701B
analogous
#1B6887 #1B3287 #3A1B87
triadic
#1B3287 #871B32 #32871B
tetradic
#1B3287 #871B68 #87701B #1B873A
square
#1B3287 #871B68 #87701B #1B873A
split-complementary
#1B3287 #873A1B #68871B
monochromatic
#070C21 #111F54 #1B3287 #2545BA #4363D9

Accessibility & contrast

On white

11.34
#1B3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1B3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3287
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3287#FFFFFF#000000##FFFFFF
##1B32871.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1b3287;
/* rgb */ color: rgb(27, 50, 135);
/* oklch */ color: oklch(35.8% 0.145 266.9);
Tailwind
colors: {
  custom: {
    50: '#6a69ab',
    500: '#1b3287',
    950: '#000000',
  },
}
SCSS
$custom: #1b3287;
$custom-light: #6a69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3287",
  "rgb": {
    "r": 27,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 227.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.1447,
    "h": 266.9
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#1B3287
secondary
#BAA144
accent
#C53EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1B3287

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

Preview Lab → · Contrast checker → · Palette generator →

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