#1B278D#1B278D

#1B278D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.4% C 0.166 H 269.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#1B278D
RGBrgb(27, 39, 141)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 55%)
CMYKcmyk(80.9%, 72.3%, 0%, 44.7%)
CIE-LABlab(22.33, 33.71, -57.32)
CIE-LCHlch(22.33, 66.50, 300.46°)
OKLaboklab(34.42% -0.0019 -0.166)
OKLCHoklch(34.42% 0.166 269.3)
XYZxyz(5.9836, 3.6065, 25.5749)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B278D #8D811B
analogous
#1B608D #1B278D #481B8D
triadic
#1B278D #8D1B27 #278D1B
tetradic
#1B278D #8D1B60 #8D811B #1B8D48
square
#1B278D #8D1B60 #8D811B #1B8D48
split-complementary
#1B278D #8D481B #608D1B
monochromatic
#070B26 #11195A #1B278D #2535C0 #4756DC

Accessibility & contrast

On white

12.20
#1B278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1B278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B278D
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B278D#FFFFFF#000000##FFFFFF
##1B278D1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b278d;
/* rgb */ color: rgb(27, 39, 141);
/* oklch */ color: oklch(34.4% 0.166 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1b278d',
    950: '#000000',
  },
}
SCSS
$custom: #1b278d;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b278d",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 233.684,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34419,
    "c": 0.16604,
    "h": 269.3
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#1B278D
secondary
#BDB146
accent
#D83DEB
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B278D

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

Preview Lab → · Contrast checker → · Palette generator →

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