#1B2B78#1B2B78

#1B2B78 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.132 H 268.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#1B2B78
RGBrgb(27, 43, 120)
HSLhsl(230, 63%, 29%)
HSVhsv(230, 78%, 47%)
CMYKcmyk(77.5%, 64.2%, 0%, 52.9%)
CIE-LABlab(21.27, 22.95, -45.83)
CIE-LCHlch(21.27, 51.25, 296.60°)
OKLaboklab(33.02% -0.0028 -0.1324)
OKLCHoklch(33.02% 0.132 268.8)
XYZxyz(4.7049, 3.3163, 18.1578)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2B78 #78681B
analogous
#1B5A78 #1B2B78 #3A1B78
triadic
#1B2B78 #781B2B #2B781B
tetradic
#1B2B78 #781B5A #78681B #1B783A
square
#1B2B78 #781B5A #78681B #1B783A
split-complementary
#1B2B78 #783A1B #5A781B
monochromatic
#060919 #101946 #1B2B78 #263DAA #3B55D3

Accessibility & contrast

On white

12.62
#1B2B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1B2B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2B78
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2B78#FFFFFF#000000##FFFFFF
##1B2B781.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1b2b78;
/* rgb */ color: rgb(27, 43, 120);
/* oklch */ color: oklch(33.0% 0.132 268.8);
Tailwind
colors: {
  custom: {
    50: '#6764a0',
    500: '#1b2b78',
    950: '#000000',
  },
}
SCSS
$custom: #1b2b78;
$custom-light: #6764a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2b78",
  "rgb": {
    "r": 27,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 229.677,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33019,
    "c": 0.13245,
    "h": 268.8
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#1B2B78
secondary
#AC9A43
accent
#CA41E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1B2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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