#1A2C7E#1A2C7E

#1A2C7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.140 H 268.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#1A2C7E
RGBrgb(26, 44, 126)
HSLhsl(229, 66%, 30%)
HSVhsv(229, 79%, 49%)
CMYKcmyk(79.4%, 65.1%, 0%, 50.6%)
CIE-LABlab(22.04, 24.51, -48.38)
CIE-LCHlch(22.04, 54.23, 296.87°)
OKLaboklab(33.75% -0.0046 -0.1399)
OKLCHoklch(33.75% 0.14 268.1)
XYZxyz(5.0913, 3.5268, 20.1470)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2C7E #7E6C1A
analogous
#1A5E7E #1A2C7E #3A1A7E
triadic
#1A2C7E #7E1A2C #2C7E1A
tetradic
#1A2C7E #7E1A5E #7E6C1A #1A7E3A
square
#1A2C7E #7E1A5E #7E6C1A #1A7E3A
split-complementary
#1A2C7E #7E3A1A #5E7E1A
monochromatic
#050919 #101A4B #1A2C7E #243EB1 #3C58D7

Accessibility & contrast

On white

12.31
#1A2C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1A2C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2C7E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2C7E#FFFFFF#000000##FFFFFF
##1A2C7E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2c7e;
/* rgb */ color: rgb(26, 44, 126);
/* oklch */ color: oklch(33.7% 0.140 268.1);
Tailwind
colors: {
  custom: {
    50: '#6865a4',
    500: '#1a2c7e',
    950: '#000000',
  },
}
SCSS
$custom: #1a2c7e;
$custom-light: #6865a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2c7e",
  "rgb": {
    "r": 26,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 229.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33747,
    "c": 0.13998,
    "h": 268.1
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#1A2C7E
secondary
#B29E42
accent
#CA3FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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