#1A2F87#1A2F87

#1A2F87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.149 H 267.4°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1A2F87
RGBrgb(26, 47, 135)
HSLhsl(228, 68%, 32%)
HSVhsv(228, 81%, 53%)
CMYKcmyk(80.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(23.68, 25.99, -51.36)
CIE-LCHlch(23.68, 57.57, 296.84°)
OKLaboklab(35.21% -0.0067 -0.1486)
OKLCHoklch(35.21% 0.149 267.4)
XYZxyz(5.8142, 4.0012, 23.3829)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2F87 #87721A
analogous
#1A6687 #1A2F87 #3B1A87
triadic
#1A2F87 #871A2F #2F871A
tetradic
#1A2F87 #871A66 #87721A #1A873B
square
#1A2F87 #871A66 #87721A #1A873B
split-complementary
#1A2F87 #873B1A #66871A
monochromatic
#060B20 #101D54 #1A2F87 #2441BA #415FDA

Accessibility & contrast

On white

11.66
#1A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1A2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2F87
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2F87#FFFFFF#000000##FFFFFF
##1A2F871.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1a2f87;
/* rgb */ color: rgb(26, 47, 135);
/* oklch */ color: oklch(35.2% 0.149 267.4);
Tailwind
colors: {
  custom: {
    50: '#6a67ab',
    500: '#1a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #1a2f87;
$custom-light: #6a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2f87",
  "rgb": {
    "r": 26,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 228.44,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.14876,
    "h": 267.4
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#1A2F87
secondary
#BAA342
accent
#C93DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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