#1B278C#1B278C

#1B278C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.165 H 269.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1B278C
RGBrgb(27, 39, 140)
HSLhsl(234, 68%, 33%)
HSVhsv(234, 81%, 55%)
CMYKcmyk(80.7%, 72.1%, 0%, 45.1%)
CIE-LABlab(22.22, 33.34, -56.87)
CIE-LCHlch(22.22, 65.92, 300.38°)
OKLaboklab(34.31% -0.0018 -0.1647)
OKLCHoklch(34.31% 0.165 269.4)
XYZxyz(5.9095, 3.5768, 25.1848)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B278C #8C801B
analogous
#1B608C #1B278C #471B8C
triadic
#1B278C #8C1B27 #278C1B
tetradic
#1B278C #8C1B60 #8C801B #1B8C47
square
#1B278C #8C1B60 #8C801B #1B8C47
split-complementary
#1B278C #8C471B #608C1B
monochromatic
#070A25 #111959 #1B278C #2535BF #4656DB

Accessibility & contrast

On white

12.24
#1B278C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B278C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B278C#FFFFFF#000000##FFFFFF
##1B278C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1b278c;
/* rgb */ color: rgb(27, 39, 140);
/* oklch */ color: oklch(34.3% 0.165 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d61af',
    500: '#1b278c',
    950: '#000000',
  },
}
SCSS
$custom: #1b278c;
$custom-light: #6d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#1b278c",
  "rgb": {
    "r": 27,
    "g": 39,
    "b": 140
  },
  "hsl": {
    "h": 233.628,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34312,
    "c": 0.16473,
    "h": 269.4
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#1B278C
secondary
#BDB046
accent
#D83DEB
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F

Preview Lab

Preview with #1B278C

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

Preview Lab → · Contrast checker → · Palette generator →

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