#1B278E#1B278E

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

Color values

HEX#1B278E
RGBrgb(27, 39, 142)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 56%)
CMYKcmyk(81%, 72.5%, 0%, 44.3%)
CIE-LABlab(22.43, 34.08, -57.77)
CIE-LCHlch(22.43, 67.07, 300.54°)
OKLaboklab(34.53% -0.0021 -0.1673)
OKLCHoklch(34.53% 0.167 269.3)
XYZxyz(6.0583, 3.6364, 25.9685)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B278E #8E821B
analogous
#1B608E #1B278E #481B8E
triadic
#1B278E #8E1B27 #278E1B
tetradic
#1B278E #8E1B60 #8E821B #1B8E48
square
#1B278E #8E1B60 #8E821B #1B8E48
split-complementary
#1B278E #8E481B #608E1B
monochromatic
#070B27 #11195B #1B278E #2535C1 #4757DC

Accessibility & contrast

On white

12.16
#1B278E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1B278E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B278E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B278E#FFFFFF#000000##FFFFFF
##1B278E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b278e;
/* rgb */ color: rgb(27, 39, 142);
/* oklch */ color: oklch(34.5% 0.167 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d61b0',
    500: '#1b278e',
    950: '#000000',
  },
}
SCSS
$custom: #1b278e;
$custom-light: #6d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1b278e",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 142
  },
  "hsl": {
    "h": 233.739,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34527,
    "c": 0.16734,
    "h": 269.3
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#1B278E
secondary
#BEB147
accent
#D93DEB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #1B278E

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

Preview Lab → · Contrast checker → · Palette generator →

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