#1A1F8E#1A1F8E

#1A1F8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.176 H 270.0°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#1A1F8E
RGBrgb(26, 31, 142)
HSLhsl(237, 69%, 33%)
HSVhsv(237, 82%, 56%)
CMYKcmyk(81.7%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.64, 38.87, -60.73)
CIE-LCHlch(20.64, 72.10, 302.62°)
OKLaboklab(33.24% 0 -0.1759)
OKLCHoklch(33.24% 0.176 270)
XYZxyz(5.7968, 3.1519, 25.8888)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F8E #8E891A
analogous
#1A598E #1A1F8E #4F1A8E
triadic
#1A1F8E #8E1A1F #1F8E1A
tetradic
#1A1F8E #8E1A59 #8E891A #1A8E4F
square
#1A1F8E #8E1A59 #8E891A #1A8E4F
split-complementary
#1A1F8E #8E4F1A #598E1A
monochromatic
#070827 #11145A #1A1F8E #232AC2 #454CDD

Accessibility & contrast

On white

12.88
#1A1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1A1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F8E
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F8E#FFFFFF#000000##FFFFFF
##1A1F8E1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1a1f8e;
/* rgb */ color: rgb(26, 31, 142);
/* oklch */ color: oklch(33.2% 0.176 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e5cb0',
    500: '#1a1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f8e;
$custom-light: #6e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f8e",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 237.414,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33237,
    "c": 0.17589,
    "h": 270
  },
  "luminance": 0.03153
}

Semantic roles & 50–950 ramp

primary
#1A1F8E
secondary
#BEB945
accent
#E43CEC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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