#1A157F#1A157F

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

Color values

HEX#1A157F
RGBrgb(26, 21, 127)
HSLhsl(243, 72%, 29%)
HSVhsv(243, 83%, 50%)
CMYKcmyk(79.5%, 83.5%, 0%, 50.2%)
CIE-LABlab(16.93, 39.26, -57.44)
CIE-LCHlch(16.93, 69.57, 304.35°)
OKLaboklab(30.11% 0.0064 -0.1662)
OKLCHoklch(30.11% 0.166 272.2)
XYZxyz(4.5236, 2.2878, 20.2777)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A157F #7A7F15
analogous
#15457F #1A157F #4F157F
triadic
#1A157F #7F1A15 #157F1A
tetradic
#1A157F #7F1545 #7A7F15 #157F4F
square
#1A157F #7F1545 #7A7F15 #157F4F
split-complementary
#1A157F #7F4F15 #457F15
monochromatic
#05041A #0F0C4A #1A157F #251EB4 #3931DD

Accessibility & contrast

On white

14.41
#1A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A157F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A157F#FFFFFF#000000##FFFFFF
##1A157F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a157f;
/* rgb */ color: rgb(26, 21, 127);
/* oklch */ color: oklch(30.1% 0.166 272.2);
Tailwind
colors: {
  custom: {
    50: '#6b55a5',
    500: '#1a157f',
    950: '#000000',
  },
}
SCSS
$custom: #1a157f;
$custom-light: #6b55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a157f",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 242.83,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30109,
    "c": 0.16633,
    "h": 272.2
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#1A157F
secondary
#AEB43C
accent
#EE39E6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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