#1A157C#1A157C

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

Color values

HEX#1A157C
RGBrgb(26, 21, 124)
HSLhsl(243, 71%, 28%)
HSVhsv(243, 83%, 49%)
CMYKcmyk(79%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.56, 38.26, -56.14)
CIE-LCHlch(16.56, 67.94, 304.27°)
OKLaboklab(29.74% 0.0072 -0.1625)
OKLCHoklch(29.74% 0.163 272.5)
XYZxyz(4.3310, 2.2107, 19.2633)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A157C #777C15
analogous
#15437C #1A157C #4D157C
triadic
#1A157C #7C1A15 #157C1A
tetradic
#1A157C #7C1543 #777C15 #157C4D
square
#1A157C #7C1543 #777C15 #157C4D
split-complementary
#1A157C #7C4D15 #437C15
monochromatic
#05041A #0F0C48 #1A157C #251EB0 #3830DC

Accessibility & contrast

On white

14.56
#1A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A157C
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A157C#FFFFFF#000000##FFFFFF
##1A157C1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.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: #1a157c;
/* rgb */ color: rgb(26, 21, 124);
/* oklch */ color: oklch(29.7% 0.163 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a55a3',
    500: '#1a157c',
    950: '#000000',
  },
}
SCSS
$custom: #1a157c;
$custom-light: #6a55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a157c",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 242.913,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2974,
    "c": 0.16262,
    "h": 272.5
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#1A157C
secondary
#ACB13C
accent
#EE3AE5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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