#1A1F8B#1A1F8B

#1A1F8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.172 H 270.2°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1A1F8B
RGBrgb(26, 31, 139)
HSLhsl(237, 68%, 32%)
HSVhsv(237, 81%, 55%)
CMYKcmyk(81.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.29, 37.82, -59.43)
CIE-LCHlch(20.29, 70.45, 302.47°)
OKLaboklab(32.89% 0.0006 -0.1721)
OKLCHoklch(32.89% 0.172 270.2)
XYZxyz(5.5746, 3.0630, 24.7185)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F8B #8B861A
analogous
#1A588B #1A1F8B #4D1A8B
triadic
#1A1F8B #8B1A1F #1F8B1A
tetradic
#1A1F8B #8B1A58 #8B861A #1A8B4D
square
#1A1F8B #8B1A58 #8B861A #1A8B4D
split-complementary
#1A1F8B #8B4D1A #588B1A
monochromatic
#070824 #101457 #1A1F8B #242ABF #434ADC

Accessibility & contrast

On white

13.02
#1A1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1A1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F8B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F8B#FFFFFF#000000##FFFFFF
##1A1F8B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1a1f8b;
/* rgb */ color: rgb(26, 31, 139);
/* oklch */ color: oklch(32.9% 0.172 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d5cae',
    500: '#1a1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f8b;
$custom-light: #6d5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f8b",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 237.345,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32889,
    "c": 0.17213,
    "h": 270.2
  },
  "luminance": 0.03064
}

Semantic roles & 50–950 ramp

primary
#1A1F8B
secondary
#BDB844
accent
#E43CEB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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