#1B147D#1B147D

#1B147D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.164 H 273.0°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#1B147D
RGBrgb(27, 20, 125)
HSLhsl(244, 72%, 28%)
HSVhsv(244, 84%, 49%)
CMYKcmyk(78.4%, 84%, 0%, 51%)
CIE-LABlab(16.57, 39.18, -56.76)
CIE-LCHlch(16.57, 68.97, 304.62°)
OKLaboklab(29.8% 0.0086 -0.1642)
OKLCHoklch(29.8% 0.164 273)
XYZxyz(4.4026, 2.2135, 19.5933)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147D #767D14
analogous
#14417D #1B147D #4F147D
triadic
#1B147D #7D1B14 #147D1B
tetradic
#1B147D #7D1441 #767D14 #147D4F
square
#1B147D #7D1441 #767D14 #147D4F
split-complementary
#1B147D #7D4F14 #417D14
monochromatic
#06041A #100C48 #1B147D #261CB2 #3A2EDE

Accessibility & contrast

On white

14.56
#1B147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1B147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B147D
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147D#FFFFFF#000000##FFFFFF
##1B147D1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b147d;
/* rgb */ color: rgb(27, 20, 125);
/* oklch */ color: oklch(29.8% 0.164 273.0);
Tailwind
colors: {
  custom: {
    50: '#6b55a4',
    500: '#1b147d',
    950: '#000000',
  },
}
SCSS
$custom: #1b147d;
$custom-light: #6b55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147d",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 244,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29804,
    "c": 0.16442,
    "h": 273
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#1B147D
secondary
#AAB23A
accent
#EF39E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B147D

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

Preview Lab → · Contrast checker → · Palette generator →

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