#1B157B#1B157B

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

Color values

HEX#1B157B
RGBrgb(27, 21, 123)
HSLhsl(244, 71%, 28%)
HSVhsv(244, 83%, 48%)
CMYKcmyk(78%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.50, 38.00, -55.60)
CIE-LCHlch(16.50, 67.34, 304.35°)
OKLaboklab(29.68% 0.0088 -0.1609)
OKLCHoklch(29.68% 0.161 273.1)
XYZxyz(4.2941, 2.1990, 18.9332)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157B #757B15
analogous
#15427B #1B157B #4E157B
triadic
#1B157B #7B1B15 #157B1B
tetradic
#1B157B #7B1542 #757B15 #157B4E
square
#1B157B #7B1542 #757B15 #157B4E
split-complementary
#1B157B #7B4E15 #427B15
monochromatic
#06041A #100C47 #1B157B #261EAF #392FDB

Accessibility & contrast

On white

14.59
#1B157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B157B
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157B#FFFFFF#000000##FFFFFF
##1B157B1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b157b;
/* rgb */ color: rgb(27, 21, 123);
/* oklch */ color: oklch(29.7% 0.161 273.1);
Tailwind
colors: {
  custom: {
    50: '#6a55a2',
    500: '#1b157b',
    950: '#000000',
  },
}
SCSS
$custom: #1b157b;
$custom-light: #6a55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157b",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 243.529,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29682,
    "c": 0.1611,
    "h": 273.1
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#1B157B
secondary
#A9B03B
accent
#EE3AE3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B157B

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

Preview Lab → · Contrast checker → · Palette generator →

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