#1B147F#1B147F

#1B147F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.167 H 272.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#1B147F
RGBrgb(27, 20, 127)
HSLhsl(244, 73%, 29%)
HSVhsv(244, 84%, 50%)
CMYKcmyk(78.7%, 84.3%, 0%, 50.2%)
CIE-LABlab(16.82, 39.83, -57.62)
CIE-LCHlch(16.82, 70.05, 304.66°)
OKLaboklab(30.05% 0.008 -0.1667)
OKLCHoklch(30.05% 0.167 272.8)
XYZxyz(4.5316, 2.2651, 20.2729)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147F #787F14
analogous
#14437F #1B147F #51147F
triadic
#1B147F #7F1B14 #147F1B
tetradic
#1B147F #7F1443 #787F14 #147F51
square
#1B147F #7F1443 #787F14 #147F51
split-complementary
#1B147F #7F5114 #437F14
monochromatic
#06041A #100C4A #1B147F #261CB4 #3B2FDE

Accessibility & contrast

On white

14.45
#1B147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1B147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B147F
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147F#FFFFFF#000000##FFFFFF
##1B147F1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b147f;
/* rgb */ color: rgb(27, 20, 127);
/* oklch */ color: oklch(30.0% 0.167 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b55a5',
    500: '#1b147f',
    950: '#000000',
  },
}
SCSS
$custom: #1b147f;
$custom-light: #6b55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147f",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 243.925,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3005,
    "c": 0.16688,
    "h": 272.8
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#1B147F
secondary
#ACB43B
accent
#EF38E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B147F

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

Preview Lab → · Contrast checker → · Palette generator →

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