#1B157E#1B157E

#1B157E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.165 H 272.8°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#1B157E
RGBrgb(27, 21, 126)
HSLhsl(243, 71%, 29%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(78.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.87, 39.00, -56.90)
CIE-LCHlch(16.87, 68.98, 304.43°)
OKLaboklab(30.05% 0.008 -0.1646)
OKLCHoklch(30.05% 0.165 272.8)
XYZxyz(4.4848, 2.2752, 19.9374)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157E #787E15
analogous
#15447E #1B157E #50157E
triadic
#1B157E #7E1B15 #157E1B
tetradic
#1B157E #7E1544 #787E15 #157E50
square
#1B157E #7E1544 #787E15 #157E50
split-complementary
#1B157E #7E5015 #447E15
monochromatic
#06041A #100C4A #1B157E #261EB2 #3B31DD

Accessibility & contrast

On white

14.43
#1B157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B157E
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157E#FFFFFF#000000##FFFFFF
##1B157E1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1b157e;
/* rgb */ color: rgb(27, 21, 126);
/* oklch */ color: oklch(30.0% 0.165 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b55a5',
    500: '#1b157e',
    950: '#000000',
  },
}
SCSS
$custom: #1b157e;
$custom-light: #6b55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157e",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 243.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30048,
    "c": 0.16482,
    "h": 272.8
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#1B157E
secondary
#ACB33C
accent
#EE3AE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1B157E

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

Preview Lab → · Contrast checker → · Palette generator →

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