#1A2997#1A2997

#1A2997 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.177 H 268.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#1A2997
RGBrgb(26, 41, 151)
HSLhsl(233, 71%, 35%)
HSVhsv(233, 83%, 59%)
CMYKcmyk(82.8%, 72.8%, 0%, 40.8%)
CIE-LABlab(23.80, 36.05, -61.08)
CIE-LCHlch(23.80, 70.92, 300.55°)
OKLaboklab(35.78% -0.0049 -0.177)
OKLCHoklch(35.78% 0.177 268.4)
XYZxyz(6.8029, 4.0390, 29.6932)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2997 #97881A
analogous
#1A6897 #1A2997 #4A1A97
triadic
#1A2997 #971A29 #29971A
tetradic
#1A2997 #971A68 #97881A #1A974A
square
#1A2997 #971A68 #97881A #1A974A
split-complementary
#1A2997 #974A1A #68971A
monochromatic
#080D2F #111B63 #1A2997 #2337CB #4B5DE0

Accessibility & contrast

On white

11.62
#1A2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1A2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2997
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2997#FFFFFF#000000##FFFFFF
##1A29971.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1a2997;
/* rgb */ color: rgb(26, 41, 151);
/* oklch */ color: oklch(35.8% 0.177 268.4);
Tailwind
colors: {
  custom: {
    50: '#6f63b7',
    500: '#1a2997',
    950: '#000000',
  },
}
SCSS
$custom: #1a2997;
$custom-light: #6f63b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2997",
  "rgb": {
    "r": 26,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 232.8,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35785,
    "c": 0.17705,
    "h": 268.4
  },
  "luminance": 0.0404
}

Semantic roles & 50–950 ramp

primary
#1A2997
secondary
#C2B44B
accent
#D83AED
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1A2997

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

Preview Lab → · Contrast checker → · Palette generator →

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