#1B147B#1B147B

#1B147B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.162 H 273.2°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#1B147B
RGBrgb(27, 20, 123)
HSLhsl(244, 72%, 28%)
HSVhsv(244, 84%, 48%)
CMYKcmyk(78%, 83.7%, 0%, 51.8%)
CIE-LABlab(16.32, 38.52, -55.90)
CIE-LCHlch(16.32, 67.88, 304.57°)
OKLaboklab(29.56% 0.0091 -0.1617)
OKLCHoklch(29.56% 0.162 273.2)
XYZxyz(4.2761, 2.1629, 18.9272)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B147B #747B14
analogous
#14407B #1B147B #4E147B
triadic
#1B147B #7B1B14 #147B1B
tetradic
#1B147B #7B1440 #747B14 #147B4E
square
#1B147B #7B1440 #747B14 #147B4E
split-complementary
#1B147B #7B4E14 #407B14
monochromatic
#06041A #0F0B46 #1B147B #271DB0 #392DDD

Accessibility & contrast

On white

14.66
#1B147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B147B
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B147B#FFFFFF#000000##FFFFFF
##1B147B1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b147b;
/* rgb */ color: rgb(27, 20, 123);
/* oklch */ color: oklch(29.6% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a55a2',
    500: '#1b147b',
    950: '#000000',
  },
}
SCSS
$custom: #1b147b;
$custom-light: #6a55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b147b",
  "rgb": {
    "r": 27,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 244.078,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29558,
    "c": 0.16196,
    "h": 273.2
  },
  "luminance": 0.02163
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B147B

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

Preview Lab → · Contrast checker → · Palette generator →

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