#1A1F7B#1A1F7B

#1A1F7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.151 H 271.2°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#1A1F7B
RGBrgb(26, 31, 123)
HSLhsl(237, 65%, 29%)
HSVhsv(237, 79%, 48%)
CMYKcmyk(78.9%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.49, 32.07, -52.30)
CIE-LCHlch(18.49, 61.35, 301.51°)
OKLaboklab(31.07% 0.0032 -0.1514)
OKLCHoklch(31.07% 0.151 271.2)
XYZxyz(4.4899, 2.6292, 19.0059)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F7B #7B761A
analogous
#1A507B #1A1F7B #461A7B
triadic
#1A1F7B #7B1A1F #1F7B1A
tetradic
#1A1F7B #7B1A50 #7B761A #1A7B46
square
#1A1F7B #7B1A50 #7B761A #1A7B46
split-complementary
#1A1F7B #7B461A #507B1A
monochromatic
#050619 #0F1248 #1A1F7B #252CAE #3A42D5

Accessibility & contrast

On white

13.76
#1A1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1A1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F7B
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F7B#FFFFFF#000000##FFFFFF
##1A1F7B1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a1f7b;
/* rgb */ color: rgb(26, 31, 123);
/* oklch */ color: oklch(31.1% 0.151 271.2);
Tailwind
colors: {
  custom: {
    50: '#695ba2',
    500: '#1a1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f7b;
$custom-light: #695ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f7b",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 236.907,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31074,
    "c": 0.15144,
    "h": 271.2
  },
  "luminance": 0.0263
}

Semantic roles & 50–950 ramp

primary
#1A1F7B
secondary
#AFAA42
accent
#DF40E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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