#1B3788#1B3788

#1B3788 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.140 H 265.4°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1B3788
RGBrgb(27, 55, 136)
HSLhsl(225, 67%, 32%)
HSVhsv(225, 80%, 53%)
CMYKcmyk(80.1%, 59.6%, 0%, 46.7%)
CIE-LABlab(25.99, 20.95, -48.21)
CIE-LCHlch(25.99, 52.56, 293.49°)
OKLaboklab(36.97% -0.0111 -0.1392)
OKLCHoklch(36.97% 0.14 265.4)
XYZxyz(6.2605, 4.7422, 23.8732)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B3788 #886C1B
analogous
#1B6E88 #1B3788 #361B88
triadic
#1B3788 #881B37 #37881B
tetradic
#1B3788 #881B6E #886C1B #1B8836
square
#1B3788 #881B6E #886C1B #1B8836
split-complementary
#1B3788 #88361B #6E881B
monochromatic
#070E22 #112255 #1B3788 #254CBB #446ADA

Accessibility & contrast

On white

10.78
#1B3788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1B3788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B3788
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B3788#FFFFFF#000000##FFFFFF
##1B37881.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1b3788;
/* rgb */ color: rgb(27, 55, 136);
/* oklch */ color: oklch(37.0% 0.140 265.4);
Tailwind
colors: {
  custom: {
    50: '#6a6dab',
    500: '#1b3788',
    950: '#000000',
  },
}
SCSS
$custom: #1b3788;
$custom-light: #6a6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1b3788",
  "rgb": {
    "r": 27,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 224.587,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.13967,
    "h": 265.4
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#1B3788
secondary
#BB9C44
accent
#BE3EEA
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1B3788

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

Preview Lab → · Contrast checker → · Palette generator →

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