#1A2297#1A2297

#1A2297 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.184 H 269.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#1A2297
RGBrgb(26, 34, 151)
HSLhsl(236, 71%, 35%)
HSVhsv(236, 83%, 59%)
CMYKcmyk(82.8%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.29, 40.27, -63.57)
CIE-LCHlch(22.29, 75.25, 302.35°)
OKLaboklab(34.71% -0.0025 -0.1842)
OKLCHoklch(34.71% 0.184 269.2)
XYZxyz(6.5820, 3.5973, 29.6196)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2297 #978F1A
analogous
#1A6197 #1A2297 #511A97
triadic
#1A2297 #971A22 #22971A
tetradic
#1A2297 #971A61 #978F1A #1A9751
square
#1A2297 #971A61 #978F1A #1A9751
split-complementary
#1A2297 #97511A #61971A
monochromatic
#080A2F #111663 #1A2297 #232ECB #4B55E0

Accessibility & contrast

On white

12.21
#1A2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1A2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2297
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2297#FFFFFF#000000##FFFFFF
##1A22971.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2297;
/* rgb */ color: rgb(26, 34, 151);
/* oklch */ color: oklch(34.7% 0.184 269.2);
Tailwind
colors: {
  custom: {
    50: '#705fb7',
    500: '#1a2297',
    950: '#000000',
  },
}
SCSS
$custom: #1a2297;
$custom-light: #705fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2297",
  "rgb": {
    "r": 26,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 236.16,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3471,
    "c": 0.18419,
    "h": 269.2
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#1A2297
secondary
#C2BA4B
accent
#E23AED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1A2297

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

Preview Lab → · Contrast checker → · Palette generator →

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