#1B147A#1B147A

#1B147A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.161 H 273.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#1B147A
RGBrgb(27, 20, 122)
HSLhsl(244, 72%, 28%)
HSVhsv(244, 84%, 48%)
CMYKcmyk(77.9%, 83.6%, 0%, 52.2%)
CIE-LABlab(16.20, 38.19, -55.46)
CIE-LCHlch(16.20, 67.34, 304.55°)
OKLaboklab(29.44% 0.0094 -0.1604)
OKLCHoklch(29.44% 0.161 273.3)
XYZxyz(4.2138, 2.1380, 18.5992)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147A #737A14
analogous
#14407A #1B147A #4E147A
triadic
#1B147A #7A1B14 #147A1B
tetradic
#1B147A #7A1440 #737A14 #147A4E
square
#1B147A #7A1440 #737A14 #147A4E
split-complementary
#1B147A #7A4E14 #407A14
monochromatic
#06041A #0F0B45 #1B147A #271DAF #382CDC

Accessibility & contrast

On white

14.71
#1B147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1B147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B147A
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147A#FFFFFF#000000##FFFFFF
##1B147A1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002378
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1b147a;
/* rgb */ color: rgb(27, 20, 122);
/* oklch */ color: oklch(29.4% 0.161 273.3);
Tailwind
colors: {
  custom: {
    50: '#6a55a2',
    500: '#1b147a',
    950: '#000000',
  },
}
SCSS
$custom: #1b147a;
$custom-light: #6a55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147a",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 244.118,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29435,
    "c": 0.16071,
    "h": 273.3
  },
  "luminance": 0.02138
}

Semantic roles & 50–950 ramp

primary
#1B147A
secondary
#A8B03A
accent
#EF39E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B147A

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

Preview Lab → · Contrast checker → · Palette generator →

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