#1A297C#1A297C

#1A297C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.141 H 269.0°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#1A297C
RGBrgb(26, 41, 124)
HSLhsl(231, 65%, 29%)
HSVhsv(231, 79%, 49%)
CMYKcmyk(79%, 66.9%, 0%, 51.4%)
CIE-LABlab(21.06, 25.80, -48.72)
CIE-LCHlch(21.06, 55.13, 297.90°)
OKLaboklab(32.97% -0.0026 -0.1409)
OKLCHoklch(32.97% 0.141 269)
XYZxyz(4.8558, 3.2602, 19.4382)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A297C #7C6D1A
analogous
#1A5A7C #1A297C #3C1A7C
triadic
#1A297C #7C1A29 #297C1A
tetradic
#1A297C #7C1A5A #7C6D1A #1A7C3C
square
#1A297C #7C1A5A #7C6D1A #1A7C3C
split-complementary
#1A297C #7C3C1A #5A7C1A
monochromatic
#050819 #0F1849 #1A297C #253AAF #3B52D6

Accessibility & contrast

On white

12.71
#1A297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1A297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A297C
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A297C#FFFFFF#000000##FFFFFF
##1A297C1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a297c;
/* rgb */ color: rgb(26, 41, 124);
/* oklch */ color: oklch(33.0% 0.141 269.0);
Tailwind
colors: {
  custom: {
    50: '#6862a3',
    500: '#1a297c',
    950: '#000000',
  },
}
SCSS
$custom: #1a297c;
$custom-light: #6862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a297c",
  "rgb": {
    "r": 26,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 230.816,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32965,
    "c": 0.14096,
    "h": 269
  },
  "luminance": 0.03261
}

Semantic roles & 50–950 ramp

primary
#1A297C
secondary
#B09F42
accent
#CE40E8
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A297C

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

Preview Lab → · Contrast checker → · Palette generator →

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