#1A3F97#1A3F97

#1A3F97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.151 H 263.7°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#1A3F97
RGBrgb(26, 63, 151)
HSLhsl(222, 71%, 35%)
HSVhsv(222, 83%, 59%)
CMYKcmyk(82.8%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.43, 21.33, -51.84)
CIE-LCHlch(29.43, 56.06, 292.37°)
OKLaboklab(39.94% -0.0166 -0.1498)
OKLCHoklch(39.94% 0.151 263.7)
XYZxyz(7.7874, 6.0081, 30.0214)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A3F97 #97721A
analogous
#1A7E97 #1A3F97 #341A97
triadic
#1A3F97 #971A3F #3F971A
tetradic
#1A3F97 #971A7E #97721A #1A9734
square
#1A3F97 #971A7E #97721A #1A9734
split-complementary
#1A3F97 #97341A #7E971A
monochromatic
#08132F #112963 #1A3F97 #2355CB #4B77E0

Accessibility & contrast

On white

9.54
#1A3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#1A3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A3F97
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A3F97#FFFFFF#000000##FFFFFF
##1A3F971.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1a3f97;
/* rgb */ color: rgb(26, 63, 151);
/* oklch */ color: oklch(39.9% 0.151 263.7);
Tailwind
colors: {
  custom: {
    50: '#6d73b6',
    500: '#1a3f97',
    950: '#000000',
  },
}
SCSS
$custom: #1a3f97;
$custom-light: #6d73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1a3f97",
  "rgb": {
    "r": 26,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 222.24,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39936,
    "c": 0.15068,
    "h": 263.7
  },
  "luminance": 0.06009
}

Semantic roles & 50–950 ramp

primary
#1A3F97
secondary
#C29F4B
accent
#B83AED
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1A3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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