#1B278F#1B278F

#1B278F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.169 H 269.3°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1B278F
RGBrgb(27, 39, 143)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 56%)
CMYKcmyk(81.1%, 72.7%, 0%, 43.9%)
CIE-LABlab(22.54, 34.45, -58.22)
CIE-LCHlch(22.54, 67.64, 300.61°)
OKLaboklab(34.64% -0.0022 -0.1686)
OKLCHoklch(34.64% 0.169 269.3)
XYZxyz(6.1337, 3.6665, 26.3657)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B278F #8F831B
analogous
#1B618F #1B278F #491B8F
triadic
#1B278F #8F1B27 #278F1B
tetradic
#1B278F #8F1B61 #8F831B #1B8F49
square
#1B278F #8F1B61 #8F831B #1B8F49
split-complementary
#1B278F #8F491B #618F1B
monochromatic
#080B28 #11195C #1B278F #2535C2 #4857DC

Accessibility & contrast

On white

12.11
#1B278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B278F
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B278F#FFFFFF#000000##FFFFFF
##1B278F1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1b278f;
/* rgb */ color: rgb(27, 39, 143);
/* oklch */ color: oklch(34.6% 0.169 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e62b1',
    500: '#1b278f',
    950: '#000000',
  },
}
SCSS
$custom: #1b278f;
$custom-light: #6e62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1b278f",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 233.793,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34635,
    "c": 0.16864,
    "h": 269.3
  },
  "luminance": 0.03667
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B278F

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

Preview Lab → · Contrast checker → · Palette generator →

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