#1B157C#1B157C

#1B157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.162 H 273.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#1B157C
RGBrgb(27, 21, 124)
HSLhsl(243, 71%, 28%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(78.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.62, 38.33, -56.03)
CIE-LCHlch(16.62, 67.89, 304.38°)
OKLaboklab(29.8% 0.0085 -0.1621)
OKLCHoklch(29.8% 0.162 273)
XYZxyz(4.3570, 2.2241, 19.2645)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1B157C #767C15
analogous
#15427C #1B157C #4E157C
triadic
#1B157C #7C1B15 #157C1B
tetradic
#1B157C #7C1542 #767C15 #157C4E
square
#1B157C #7C1542 #767C15 #157C4E
split-complementary
#1B157C #7C4E15 #427C15
monochromatic
#06041A #100C48 #1B157C #261EB0 #3A30DC

Accessibility & contrast

On white

14.53
#1B157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1B157C
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1B157C#FFFFFF#000000##FFFFFF
##1B157C1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1b157c;
/* rgb */ color: rgb(27, 21, 124);
/* oklch */ color: oklch(29.8% 0.162 273.0);
Tailwind
colors: {
  custom: {
    50: '#6a55a3',
    500: '#1b157c',
    950: '#000000',
  },
}
SCSS
$custom: #1b157c;
$custom-light: #6a55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1b157c",
  "rgb": {
    "r": 27,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 243.495,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29804,
    "c": 0.16234,
    "h": 273
  },
  "luminance": 0.02225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1B157C

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

Preview Lab → · Contrast checker → · Palette generator →

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