#1B157A#1B157A

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

Color values

HEX#1B157A
RGBrgb(27, 21, 122)
HSLhsl(244, 71%, 28%)
HSVhsv(244, 83%, 48%)
CMYKcmyk(77.9%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.38, 37.67, -55.16)
CIE-LCHlch(16.38, 66.80, 304.33°)
OKLaboklab(29.56% 0.009 -0.1596)
OKLCHoklch(29.56% 0.16 273.2)
XYZxyz(4.2318, 2.1740, 18.6052)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157A #747A15
analogous
#15427A #1B157A #4D157A
triadic
#1B157A #7A1B15 #157A1B
tetradic
#1B157A #7A1542 #747A15 #157A4D
square
#1B157A #7A1542 #747A15 #157A4D
split-complementary
#1B157A #7A4D15 #427A15
monochromatic
#06041A #0F0C46 #1B157A #271EAE #392EDB

Accessibility & contrast

On white

14.64
#1B157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B157A
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157A#FFFFFF#000000##FFFFFF
##1B157A1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b157a;
/* rgb */ color: rgb(27, 21, 122);
/* oklch */ color: oklch(29.6% 0.160 273.2);
Tailwind
colors: {
  custom: {
    50: '#6a55a2',
    500: '#1b157a',
    950: '#000000',
  },
}
SCSS
$custom: #1b157a;
$custom-light: #6a55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157a",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 243.564,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.2956,
    "c": 0.15985,
    "h": 273.2
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#1B157A
secondary
#A9AF3B
accent
#ED3AE3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B157A

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

Preview Lab → · Contrast checker → · Palette generator →

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