#1A1F85#1A1F85

#1A1F85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.165 H 270.6°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#1A1F85
RGBrgb(26, 31, 133)
HSLhsl(237, 67%, 31%)
HSVhsv(237, 80%, 52%)
CMYKcmyk(80.5%, 76.7%, 0%, 47.8%)
CIE-LABlab(19.61, 35.70, -56.80)
CIE-LCHlch(19.61, 67.09, 302.15°)
OKLaboklab(32.2% 0.0016 -0.1645)
OKLCHoklch(32.2% 0.165 270.6)
XYZxyz(5.1482, 2.8925, 22.4727)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F85 #85801A
analogous
#1A5485 #1A1F85 #4A1A85
triadic
#1A1F85 #851A1F #1F851A
tetradic
#1A1F85 #851A54 #85801A #1A854A
square
#1A1F85 #851A54 #85801A #1A854A
split-complementary
#1A1F85 #854A1A #54851A
monochromatic
#06071F #101352 #1A1F85 #242BB8 #4047DA

Accessibility & contrast

On white

13.30
#1A1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1A1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F85
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F85#FFFFFF#000000##FFFFFF
##1A1F851.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1a1f85;
/* rgb */ color: rgb(26, 31, 133);
/* oklch */ color: oklch(32.2% 0.165 270.6);
Tailwind
colors: {
  custom: {
    50: '#6b5caa',
    500: '#1a1f85',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f85;
$custom-light: #6b5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f85",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 237.196,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.322,
    "c": 0.16451,
    "h": 270.6
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#1A1F85
secondary
#B8B342
accent
#E23EEA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1A1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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