#1A2797#1A2797

#1A2797 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.179 H 268.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#1A2797
RGBrgb(26, 39, 151)
HSLhsl(234, 71%, 35%)
HSVhsv(234, 83%, 59%)
CMYKcmyk(82.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.35, 37.29, -61.82)
CIE-LCHlch(23.35, 72.19, 301.10°)
OKLaboklab(35.46% -0.0041 -0.1791)
OKLCHoklch(35.46% 0.179 268.7)
XYZxyz(6.7355, 3.9042, 29.6708)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2797 #978A1A
analogous
#1A6697 #1A2797 #4C1A97
triadic
#1A2797 #971A27 #27971A
tetradic
#1A2797 #971A66 #978A1A #1A974C
square
#1A2797 #971A66 #978A1A #1A974C
split-complementary
#1A2797 #974C1A #66971A
monochromatic
#080C2F #111A63 #1A2797 #2334CB #4B5BE0

Accessibility & contrast

On white

11.79
#1A2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1A2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2797
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2797#FFFFFF#000000##FFFFFF
##1A27971.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1a2797;
/* rgb */ color: rgb(26, 39, 151);
/* oklch */ color: oklch(35.5% 0.179 268.7);
Tailwind
colors: {
  custom: {
    50: '#6f62b7',
    500: '#1a2797',
    950: '#000000',
  },
}
SCSS
$custom: #1a2797;
$custom-light: #6f62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2797",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 233.76,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35464,
    "c": 0.17917,
    "h": 268.7
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#1A2797
secondary
#C2B64B
accent
#DB3AED
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1A2797

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

Preview Lab → · Contrast checker → · Palette generator →

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