#1B157F#1B157F

#1B157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 272.7°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#1B157F
RGBrgb(27, 21, 127)
HSLhsl(243, 72%, 29%)
HSVhsv(243, 83%, 50%)
CMYKcmyk(78.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.99, 39.33, -57.33)
CIE-LCHlch(16.99, 69.52, 304.45°)
OKLaboklab(30.17% 0.0077 -0.1659)
OKLCHoklch(30.17% 0.166 272.7)
XYZxyz(4.5496, 2.3012, 20.2789)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157F #797F15
analogous
#15447F #1B157F #50157F
triadic
#1B157F #7F1B15 #157F1B
tetradic
#1B157F #7F1544 #797F15 #157F50
square
#1B157F #7F1544 #797F15 #157F50
split-complementary
#1B157F #7F5015 #447F15
monochromatic
#06041A #100C4A #1B157F #261EB4 #3B31DD

Accessibility & contrast

On white

14.38
#1B157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1B157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1B157F
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157F#FFFFFF#000000##FFFFFF
##1B157F1.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b157f;
/* rgb */ color: rgb(27, 21, 127);
/* oklch */ color: oklch(30.2% 0.166 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b56a5',
    500: '#1b157f',
    950: '#000000',
  },
}
SCSS
$custom: #1b157f;
$custom-light: #6b56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157f",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 243.396,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3017,
    "c": 0.16606,
    "h": 272.7
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#1B157F
secondary
#ADB43C
accent
#EE39E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B157F

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

Preview Lab → · Contrast checker → · Palette generator →

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