#1A1F7A#1A1F7A

#1A1F7A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.150 H 271.3°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#1A1F7A
RGBrgb(26, 31, 122)
HSLhsl(237, 65%, 29%)
HSVhsv(237, 79%, 48%)
CMYKcmyk(78.7%, 74.6%, 0%, 52.2%)
CIE-LABlab(18.38, 31.70, -51.85)
CIE-LCHlch(18.38, 60.77, 301.44°)
OKLaboklab(30.96% 0.0034 -0.1501)
OKLCHoklch(30.96% 0.15 271.3)
XYZxyz(4.4276, 2.6042, 18.6779)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F7A #7A751A
analogous
#1A4F7A #1A1F7A #451A7A
triadic
#1A1F7A #7A1A1F #1F7A1A
tetradic
#1A1F7A #7A1A4F #7A751A #1A7A45
square
#1A1F7A #7A1A4F #7A751A #1A7A45
split-complementary
#1A1F7A #7A451A #4F7A1A
monochromatic
#050619 #0F1248 #1A1F7A #252CAC #3942D5

Accessibility & contrast

On white

13.81
#1A1F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1A1F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F7A
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F7A#FFFFFF#000000##FFFFFF
##1A1F7A1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002878
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a1f7a;
/* rgb */ color: rgb(26, 31, 122);
/* oklch */ color: oklch(31.0% 0.150 271.3);
Tailwind
colors: {
  custom: {
    50: '#685ba1',
    500: '#1a1f7a',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f7a;
$custom-light: #685ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f7a",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 236.875,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30963,
    "c": 0.15012,
    "h": 271.3
  },
  "luminance": 0.02605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A1F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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