#1A2F78#1A2F78

#1A2F78 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.127 H 267.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#1A2F78
RGBrgb(26, 47, 120)
HSLhsl(227, 64%, 29%)
HSVhsv(227, 78%, 47%)
CMYKcmyk(78.3%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.33, 20.00, -44.10)
CIE-LCHlch(22.33, 48.42, 294.39°)
OKLaboklab(33.8% -0.0067 -0.1273)
OKLCHoklch(33.8% 0.127 267)
XYZxyz(4.8315, 3.6082, 18.2075)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F78 #78631A
analogous
#1A5E78 #1A2F78 #341A78
triadic
#1A2F78 #781A2F #2F781A
tetradic
#1A2F78 #781A5E #78631A #1A7834
square
#1A2F78 #781A5E #78631A #1A7834
split-complementary
#1A2F78 #78341A #5E781A
monochromatic
#050A19 #0F1B46 #1A2F78 #2543AA #385BD4

Accessibility & contrast

On white

12.20
#1A2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2F78
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F78#FFFFFF#000000##FFFFFF
##1A2F781.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2f78;
/* rgb */ color: rgb(26, 47, 120);
/* oklch */ color: oklch(33.8% 0.127 267.0);
Tailwind
colors: {
  custom: {
    50: '#6667a0',
    500: '#1a2f78',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f78;
$custom-light: #6667a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f78",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 226.596,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33796,
    "c": 0.12748,
    "h": 267
  },
  "luminance": 0.03609
}

Semantic roles & 50–950 ramp

primary
#1A2F78
secondary
#AC9541
accent
#C240E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #1A2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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