#1B147C#1B147C

#1B147C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.163 H 273.1°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1B147C
RGBrgb(27, 20, 124)
HSLhsl(244, 72%, 28%)
HSVhsv(244, 84%, 49%)
CMYKcmyk(78.2%, 83.9%, 0%, 51.4%)
CIE-LABlab(16.44, 38.85, -56.33)
CIE-LCHlch(16.44, 68.43, 304.59°)
OKLaboklab(29.68% 0.0088 -0.163)
OKLCHoklch(29.68% 0.163 273.1)
XYZxyz(4.3390, 2.1881, 19.2585)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147C #757C14
analogous
#14417C #1B147C #4F147C
triadic
#1B147C #7C1B14 #147C1B
tetradic
#1B147C #7C1441 #757C14 #147C4F
square
#1B147C #7C1441 #757C14 #147C4F
split-complementary
#1B147C #7C4F14 #417C14
monochromatic
#06041A #100B47 #1B147C #261DB1 #392DDD

Accessibility & contrast

On white

14.61
#1B147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B147C
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147C#FFFFFF#000000##FFFFFF
##1B147C1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b147c;
/* rgb */ color: rgb(27, 20, 124);
/* oklch */ color: oklch(29.7% 0.163 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a55a3',
    500: '#1b147c',
    950: '#000000',
  },
}
SCSS
$custom: #1b147c;
$custom-light: #6a55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147c",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 244.038,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29681,
    "c": 0.1632,
    "h": 273.1
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#1B147C
secondary
#A9B23A
accent
#EF39E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B147C

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

Preview Lab → · Contrast checker → · Palette generator →

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