#1B147E#1B147E

#1B147E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.166 H 272.9°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1B147E
RGBrgb(27, 20, 126)
HSLhsl(244, 73%, 29%)
HSVhsv(244, 84%, 49%)
CMYKcmyk(78.6%, 84.1%, 0%, 50.6%)
CIE-LABlab(16.70, 39.51, -57.19)
CIE-LCHlch(16.70, 69.51, 304.64°)
OKLaboklab(29.93% 0.0083 -0.1655)
OKLCHoklch(29.93% 0.166 272.9)
XYZxyz(4.4668, 2.2392, 19.9314)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147E #777E14
analogous
#14427E #1B147E #50147E
triadic
#1B147E #7E1B14 #147E1B
tetradic
#1B147E #7E1442 #777E14 #147E50
square
#1B147E #7E1442 #777E14 #147E50
split-complementary
#1B147E #7E5014 #427E14
monochromatic
#06041A #100C49 #1B147E #261CB3 #3A2EDE

Accessibility & contrast

On white

14.50
#1B147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B147E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147E#FFFFFF#000000##FFFFFF
##1B147E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b147e;
/* rgb */ color: rgb(27, 20, 126);
/* oklch */ color: oklch(29.9% 0.166 272.9);
Tailwind
colors: {
  custom: {
    50: '#6b55a5',
    500: '#1b147e',
    950: '#000000',
  },
}
SCSS
$custom: #1b147e;
$custom-light: #6b55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147e",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 243.962,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29927,
    "c": 0.16566,
    "h": 272.9
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B147E

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

Preview Lab → · Contrast checker → · Palette generator →

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