#1A158F#1A158F

#1A158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.186 H 270.8°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#1A158F
RGBrgb(26, 21, 143)
HSLhsl(242, 74%, 32%)
HSVhsv(242, 85%, 56%)
CMYKcmyk(81.8%, 85.3%, 0%, 43.9%)
CIE-LABlab(18.96, 44.43, -64.13)
CIE-LCHlch(18.96, 78.02, 304.71°)
OKLaboklab(32.1% 0.0025 -0.1856)
OKLCHoklch(32.1% 0.186 270.8)
XYZxyz(5.6504, 2.7385, 26.2121)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A158F #8A8F15
analogous
#154D8F #1A158F #57158F
triadic
#1A158F #8F1A15 #158F1A
tetradic
#1A158F #8F154D #8A8F15 #158F57
square
#1A158F #8F154D #8A8F15 #158F57
split-complementary
#1A158F #8F5715 #4D8F15
monochromatic
#070524 #100D5A #1A158F #241DC4 #433CE2

Accessibility & contrast

On white

13.57
#1A158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1A158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A158F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A158F#FFFFFF#000000##FFFFFF
##1A158F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a158f;
/* rgb */ color: rgb(26, 21, 143);
/* oklch */ color: oklch(32.1% 0.186 270.8);
Tailwind
colors: {
  custom: {
    50: '#6f57b1',
    500: '#1a158f',
    950: '#000000',
  },
}
SCSS
$custom: #1a158f;
$custom-light: #6f57b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a158f",
  "rgb": {
    "r": 26,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 242.459,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32101,
    "c": 0.18561,
    "h": 270.8
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#1A158F
secondary
#BDC23E
accent
#F137E9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A158F

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

Preview Lab → · Contrast checker → · Palette generator →

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