#1A2785#1A2785

#1A2785 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.156 H 269.2°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#1A2785
RGBrgb(26, 39, 133)
HSLhsl(233, 67%, 31%)
HSVhsv(233, 80%, 52%)
CMYKcmyk(80.5%, 70.7%, 0%, 47.8%)
CIE-LABlab(21.44, 30.62, -53.77)
CIE-LCHlch(21.44, 61.88, 299.66°)
OKLaboklab(33.52% -0.0021 -0.1557)
OKLCHoklch(33.52% 0.156 269.2)
XYZxyz(5.3837, 3.3635, 22.5512)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2785 #85781A
analogous
#1A5C85 #1A2785 #421A85
triadic
#1A2785 #851A27 #27851A
tetradic
#1A2785 #851A5C #85781A #1A8542
square
#1A2785 #851A5C #85781A #1A8542
split-complementary
#1A2785 #85421A #5C851A
monochromatic
#06091F #101852 #1A2785 #2436B8 #4052DA

Accessibility & contrast

On white

12.55
#1A2785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1A2785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2785
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2785#FFFFFF#000000##FFFFFF
##1A27851.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a2785;
/* rgb */ color: rgb(26, 39, 133);
/* oklch */ color: oklch(33.5% 0.156 269.2);
Tailwind
colors: {
  custom: {
    50: '#6a61a9',
    500: '#1a2785',
    950: '#000000',
  },
}
SCSS
$custom: #1a2785;
$custom-light: #6a61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2785",
  "rgb": {
    "r": 26,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 232.71,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33519,
    "c": 0.15571,
    "h": 269.2
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#1A2785
secondary
#B8AA42
accent
#D53EEA
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1A2785

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

Preview Lab → · Contrast checker → · Palette generator →

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