#1B157D#1B157D

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

Color values

HEX#1B157D
RGBrgb(27, 21, 125)
HSLhsl(243, 71%, 29%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(78.4%, 83.2%, 0%, 51%)
CIE-LABlab(16.75, 38.67, -56.47)
CIE-LCHlch(16.75, 68.44, 304.40°)
OKLaboklab(29.93% 0.0082 -0.1634)
OKLCHoklch(29.93% 0.164 272.9)
XYZxyz(4.4206, 2.2495, 19.5993)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157D #777D15
analogous
#15437D #1B157D #4F157D
triadic
#1B157D #7D1B15 #157D1B
tetradic
#1B157D #7D1543 #777D15 #157D4F
square
#1B157D #7D1543 #777D15 #157D4F
split-complementary
#1B157D #7D4F15 #437D15
monochromatic
#06041A #100C49 #1B157D #261EB1 #3A30DC

Accessibility & contrast

On white

14.48
#1B157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B157D
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157D#FFFFFF#000000##FFFFFF
##1B157D1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1b157d;
/* rgb */ color: rgb(27, 21, 125);
/* oklch */ color: oklch(29.9% 0.164 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a55a4',
    500: '#1b157d',
    950: '#000000',
  },
}
SCSS
$custom: #1b157d;
$custom-light: #6a55a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157d",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 243.462,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.16359,
    "h": 272.9
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#1B157D
secondary
#ABB23C
accent
#EE3AE4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1B157D

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

Preview Lab → · Contrast checker → · Palette generator →

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