#1A1F7D#1A1F7D

#1A1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.154 H 271.1°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1A1F7D
RGBrgb(26, 31, 125)
HSLhsl(237, 66%, 30%)
HSVhsv(237, 79%, 49%)
CMYKcmyk(79.2%, 75.2%, 0%, 51%)
CIE-LABlab(18.71, 32.80, -53.21)
CIE-LCHlch(18.71, 62.51, 301.65°)
OKLaboklab(31.3% 0.0029 -0.1541)
OKLCHoklch(31.3% 0.154 271.1)
XYZxyz(4.6164, 2.6798, 19.6720)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A1F7D #7D781A
analogous
#1A507D #1A1F7D #471A7D
triadic
#1A1F7D #7D1A1F #1F7D1A
tetradic
#1A1F7D #7D1A50 #7D781A #1A7D47
square
#1A1F7D #7D1A50 #7D781A #1A7D47
split-complementary
#1A1F7D #7D471A #507D1A
monochromatic
#050619 #0F124A #1A1F7D #252CB0 #3B43D6

Accessibility & contrast

On white

13.67
#1A1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1A1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A1F7D
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A1F7D#FFFFFF#000000##FFFFFF
##1A1F7D1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1a1f7d;
/* rgb */ color: rgb(26, 31, 125);
/* oklch */ color: oklch(31.3% 0.154 271.1);
Tailwind
colors: {
  custom: {
    50: '#695ba4',
    500: '#1a1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1a1f7d;
$custom-light: #695ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a1f7d",
  "rgb": {
    "r": 26,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 236.97,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31297,
    "c": 0.1541,
    "h": 271.1
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#1A1F7D
secondary
#B1AB42
accent
#E03FE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1A1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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