#1B2278#1B2278

#1B2278 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.144 H 271.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#1B2278
RGBrgb(27, 34, 120)
HSLhsl(235, 63%, 29%)
HSVhsv(235, 78%, 47%)
CMYKcmyk(77.5%, 71.7%, 0%, 52.9%)
CIE-LABlab(18.94, 29.11, -49.65)
CIE-LCHlch(18.94, 57.55, 300.38°)
OKLaboklab(31.32% 0.0032 -0.1436)
OKLCHoklch(31.32% 0.144 271.3)
XYZxyz(4.4130, 2.7327, 18.0605)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B2278 #78711B
analogous
#1B5178 #1B2278 #431B78
triadic
#1B2278 #781B22 #22781B
tetradic
#1B2278 #781B51 #78711B #1B7843
square
#1B2278 #781B51 #78711B #1B7843
split-complementary
#1B2278 #78431B #51781B
monochromatic
#060719 #101446 #1B2278 #2630AA #3B46D3

Accessibility & contrast

On white

13.58
#1B2278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1B2278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B2278
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B2278#FFFFFF#000000##FFFFFF
##1B22781.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1b2278;
/* rgb */ color: rgb(27, 34, 120);
/* oklch */ color: oklch(31.3% 0.144 271.3);
Tailwind
colors: {
  custom: {
    50: '#685da0',
    500: '#1b2278',
    950: '#000000',
  },
}
SCSS
$custom: #1b2278;
$custom-light: #685da0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b2278",
  "rgb": {
    "r": 27,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 235.484,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.14368,
    "h": 271.3
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#1B2278
secondary
#ACA443
accent
#DA41E6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1B2278

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

Preview Lab → · Contrast checker → · Palette generator →

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