#1B2D78#1B2D78

#1B2D78 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.130 H 268.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#1B2D78
RGBrgb(27, 45, 120)
HSLhsl(228, 63%, 29%)
HSVhsv(228, 78%, 47%)
CMYKcmyk(77.5%, 62.5%, 0%, 52.9%)
CIE-LABlab(21.82, 21.54, -44.93)
CIE-LCHlch(21.82, 49.83, 295.61°)
OKLaboklab(33.43% -0.0043 -0.1298)
OKLCHoklch(33.43% 0.13 268.1)
XYZxyz(4.7794, 3.4653, 18.1826)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2D78 #78661B
analogous
#1B5C78 #1B2D78 #381B78
triadic
#1B2D78 #781B2D #2D781B
tetradic
#1B2D78 #781B5C #78661B #1B7838
square
#1B2D78 #781B5C #78661B #1B7838
split-complementary
#1B2D78 #78381B #5C781B
monochromatic
#060919 #101A46 #1B2D78 #2640AA #3B58D3

Accessibility & contrast

On white

12.40
#1B2D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1B2D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2D78
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2D78#FFFFFF#000000##FFFFFF
##1B2D781.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1b2d78;
/* rgb */ color: rgb(27, 45, 120);
/* oklch */ color: oklch(33.4% 0.130 268.1);
Tailwind
colors: {
  custom: {
    50: '#6765a0',
    500: '#1b2d78',
    950: '#000000',
  },
}
SCSS
$custom: #1b2d78;
$custom-light: #6765a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2d78",
  "rgb": {
    "r": 27,
    "g": 45,
    "b": 120
  },
  "hsl": {
    "h": 228.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33427,
    "c": 0.12983,
    "h": 268.1
  },
  "luminance": 0.03466
}

Semantic roles & 50–950 ramp

primary
#1B2D78
secondary
#AC9843
accent
#C641E6
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1B2D78

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

Preview Lab → · Contrast checker → · Palette generator →

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