#1B2178#1B2178

#1B2178 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.1% C 0.145 H 271.5°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1B2178
RGBrgb(27, 33, 120)
HSLhsl(236, 63%, 29%)
HSVhsv(236, 78%, 47%)
CMYKcmyk(77.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(18.70, 29.77, -50.05)
CIE-LCHlch(18.70, 58.23, 300.74°)
OKLaboklab(31.14% 0.0037 -0.1448)
OKLCHoklch(31.14% 0.145 271.5)
XYZxyz(4.3849, 2.6763, 18.0511)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2178 #78721B
analogous
#1B5078 #1B2178 #441B78
triadic
#1B2178 #781B21 #21781B
tetradic
#1B2178 #781B50 #78721B #1B7844
square
#1B2178 #781B50 #78721B #1B7844
split-complementary
#1B2178 #78441B #50781B
monochromatic
#060719 #101346 #1B2178 #262FAA #3B44D3

Accessibility & contrast

On white

13.68
#1B2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1B2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2178
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2178#FFFFFF#000000##FFFFFF
##1B21781.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1b2178;
/* rgb */ color: rgb(27, 33, 120);
/* oklch */ color: oklch(31.1% 0.145 271.5);
Tailwind
colors: {
  custom: {
    50: '#685da0',
    500: '#1b2178',
    950: '#000000',
  },
}
SCSS
$custom: #1b2178;
$custom-light: #685da0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2178",
  "rgb": {
    "r": 27,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 236.129,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3114,
    "c": 0.14486,
    "h": 271.5
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#1B2178
secondary
#ACA543
accent
#DC41E6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1B2178

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

Preview Lab → · Contrast checker → · Palette generator →

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