#1A2E78#1A2E78

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

Color values

HEX#1A2E78
RGBrgb(26, 46, 120)
HSLhsl(227, 64%, 29%)
HSVhsv(227, 78%, 47%)
CMYKcmyk(78.3%, 61.7%, 0%, 52.9%)
CIE-LABlab(22.05, 20.71, -44.56)
CIE-LCHlch(22.05, 49.13, 294.93°)
OKLaboklab(33.59% -0.006 -0.1287)
OKLCHoklch(33.59% 0.129 267.3)
XYZxyz(4.7920, 3.5291, 18.1943)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2E78 #78641A
analogous
#1A5D78 #1A2E78 #351A78
triadic
#1A2E78 #781A2E #2E781A
tetradic
#1A2E78 #781A5D #78641A #1A7835
square
#1A2E78 #781A5D #78641A #1A7835
split-complementary
#1A2E78 #78351A #5D781A
monochromatic
#050A19 #0F1B46 #1A2E78 #2541AA #385AD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1A2E78#FFFFFF#000000##FFFFFF
##1A2E781.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)
#00397A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2e78;
/* rgb */ color: rgb(26, 46, 120);
/* oklch */ color: oklch(33.6% 0.129 267.3);
Tailwind
colors: {
  custom: {
    50: '#6666a0',
    500: '#1a2e78',
    950: '#000000',
  },
}
SCSS
$custom: #1a2e78;
$custom-light: #6666a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2e78",
  "rgb": {
    "r": 26,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 227.234,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33586,
    "c": 0.12881,
    "h": 267.3
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#1A2E78
secondary
#AC9641
accent
#C440E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1A2E78

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

Preview Lab → · Contrast checker → · Palette generator →

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