#1B2C78#1B2C78

#1B2C78 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.131 H 268.5°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#1B2C78
RGBrgb(27, 44, 120)
HSLhsl(229, 63%, 29%)
HSVhsv(229, 78%, 47%)
CMYKcmyk(77.5%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.54, 22.24, -45.38)
CIE-LCHlch(21.54, 50.54, 296.11°)
OKLaboklab(33.22% -0.0035 -0.1311)
OKLCHoklch(33.22% 0.131 268.5)
XYZxyz(4.7417, 3.3899, 18.1701)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2C78 #78671B
analogous
#1B5B78 #1B2C78 #391B78
triadic
#1B2C78 #781B2C #2C781B
tetradic
#1B2C78 #781B5B #78671B #1B7839
square
#1B2C78 #781B5B #78671B #1B7839
split-complementary
#1B2C78 #78391B #5B781B
monochromatic
#060919 #101A46 #1B2C78 #263EAA #3B56D3

Accessibility & contrast

On white

12.51
#1B2C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1B2C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2C78
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2C78#FFFFFF#000000##FFFFFF
##1B2C781.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b2c78;
/* rgb */ color: rgb(27, 44, 120);
/* oklch */ color: oklch(33.2% 0.131 268.5);
Tailwind
colors: {
  custom: {
    50: '#6764a0',
    500: '#1b2c78',
    950: '#000000',
  },
}
SCSS
$custom: #1b2c78;
$custom-light: #6764a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2c78",
  "rgb": {
    "r": 27,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 229.032,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33222,
    "c": 0.13115,
    "h": 268.5
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#1B2C78
secondary
#AC9943
accent
#C841E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1B2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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