#1A1F87#1A1F87

#1A1F87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.167 H 270.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#1A1F87
RGBrgb(26, 31, 135)
HSLhsl(237, 68%, 32%)
HSVhsv(237, 81%, 53%)
CMYKcmyk(80.7%, 77%, 0%, 47.1%)
CIE-LABlab(19.84, 36.41, -57.68)
CIE-LCHlch(19.84, 68.21, 302.26°)
OKLaboklab(32.43% 0.0013 -0.1671)
OKLCHoklch(32.43% 0.167 270.4)
XYZxyz(5.2877, 2.9483, 23.2074)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F87 #87821A
analogous
#1A5687 #1A1F87 #4C1A87
triadic
#1A1F87 #871A1F #1F871A
tetradic
#1A1F87 #871A56 #87821A #1A874C
square
#1A1F87 #871A56 #87821A #1A874C
split-complementary
#1A1F87 #874C1A #56871A
monochromatic
#060720 #101354 #1A1F87 #242BBA #4148DA

Accessibility & contrast

On white

13.21
#1A1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1A1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F87
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F87#FFFFFF#000000##FFFFFF
##1A1F871.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1a1f87;
/* rgb */ color: rgb(26, 31, 135);
/* oklch */ color: oklch(32.4% 0.167 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c5cab',
    500: '#1a1f87',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f87;
$custom-light: #6c5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f87",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 237.248,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32429,
    "c": 0.16706,
    "h": 270.4
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#1A1F87
secondary
#BAB542
accent
#E33DEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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