#1B278A#1B278A

#1B278A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.162 H 269.4°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1B278A
RGBrgb(27, 39, 138)
HSLhsl(234, 67%, 32%)
HSVhsv(234, 80%, 54%)
CMYKcmyk(80.4%, 71.7%, 0%, 45.9%)
CIE-LABlab(22.01, 32.59, -55.97)
CIE-LCHlch(22.01, 64.77, 300.21°)
OKLaboklab(34.1% -0.0016 -0.1621)
OKLCHoklch(34.1% 0.162 269.4)
XYZxyz(5.7634, 3.5184, 24.4152)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B278A #8A7E1B
analogous
#1B5E8A #1B278A #471B8A
triadic
#1B278A #8A1B27 #278A1B
tetradic
#1B278A #8A1B5E #8A7E1B #1B8A47
square
#1B278A #8A1B5E #8A7E1B #1B8A47
split-complementary
#1B278A #8A471B #5E8A1B
monochromatic
#070A24 #111957 #1B278A #2535BD #4555DB

Accessibility & contrast

On white

12.33
#1B278A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1B278A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B278A
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B278A#FFFFFF#000000##FFFFFF
##1B278A1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b278a;
/* rgb */ color: rgb(27, 39, 138);
/* oklch */ color: oklch(34.1% 0.162 269.4);
Tailwind
colors: {
  custom: {
    50: '#6c61ad',
    500: '#1b278a',
    950: '#000000',
  },
}
SCSS
$custom: #1b278a;
$custom-light: #6c61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1b278a",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 138
  },
  "hsl": {
    "h": 233.514,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34098,
    "c": 0.1621,
    "h": 269.4
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#1B278A
secondary
#BCAF45
accent
#D83EEA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B278A

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

Preview Lab → · Contrast checker → · Palette generator →

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