#1B2A78#1B2A78

#1B2A78 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.134 H 269.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#1B2A78
RGBrgb(27, 42, 120)
HSLhsl(230, 63%, 29%)
HSVhsv(230, 78%, 47%)
CMYKcmyk(77.5%, 65%, 0%, 52.9%)
CIE-LABlab(21.00, 23.65, -46.27)
CIE-LCHlch(21.00, 51.96, 297.07°)
OKLaboklab(32.82% -0.0021 -0.1337)
OKLCHoklch(32.82% 0.134 269.1)
XYZxyz(4.6690, 3.2445, 18.1458)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2A78 #78691B
analogous
#1B5978 #1B2A78 #3B1B78
triadic
#1B2A78 #781B2A #2A781B
tetradic
#1B2A78 #781B59 #78691B #1B783B
square
#1B2A78 #781B59 #78691B #1B783B
split-complementary
#1B2A78 #783B1B #59781B
monochromatic
#060919 #101946 #1B2A78 #263BAA #3B53D3

Accessibility & contrast

On white

12.73
#1B2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1B2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2A78
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2A78#FFFFFF#000000##FFFFFF
##1B2A781.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1b2a78;
/* rgb */ color: rgb(27, 42, 120);
/* oklch */ color: oklch(32.8% 0.134 269.1);
Tailwind
colors: {
  custom: {
    50: '#6763a0',
    500: '#1b2a78',
    950: '#000000',
  },
}
SCSS
$custom: #1b2a78;
$custom-light: #6763a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2a78",
  "rgb": {
    "r": 27,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 230.323,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32819,
    "c": 0.13375,
    "h": 269.1
  },
  "luminance": 0.03245
}

Semantic roles & 50–950 ramp

primary
#1B2A78
secondary
#AC9B43
accent
#CC41E6
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1B2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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