#1A2C7F#1A2C7F

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

Color values

HEX#1A2C7F
RGBrgb(26, 44, 127)
HSLhsl(229, 66%, 30%)
HSVhsv(229, 80%, 50%)
CMYKcmyk(79.5%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.13, 24.91, -48.86)
CIE-LCHlch(22.13, 54.84, 297.01°)
OKLaboklab(33.84% -0.0046 -0.1413)
OKLCHoklch(33.84% 0.141 268.1)
XYZxyz(5.1561, 3.5527, 20.4886)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2C7F #7F6D1A
analogous
#1A5E7F #1A2C7F #3B1A7F
triadic
#1A2C7F #7F1A2C #2C7F1A
tetradic
#1A2C7F #7F1A5E #7F6D1A #1A7F3B
square
#1A2C7F #7F1A5E #7F6D1A #1A7F3B
split-complementary
#1A2C7F #7F3B1A #5E7F1A
monochromatic
#050919 #101A4C #1A2C7F #243EB2 #3C58D7

Accessibility & contrast

On white

12.28
#1A2C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2C7F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2C7F#FFFFFF#000000##FFFFFF
##1A2C7F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1a2c7f;
/* rgb */ color: rgb(26, 44, 127);
/* oklch */ color: oklch(33.8% 0.141 268.1);
Tailwind
colors: {
  custom: {
    50: '#6865a5',
    500: '#1a2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2c7f;
$custom-light: #6865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2c7f",
  "rgb": {
    "r": 26,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 229.307,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33844,
    "c": 0.14139,
    "h": 268.1
  },
  "luminance": 0.03553
}

Semantic roles & 50–950 ramp

primary
#1A2C7F
secondary
#B39F42
accent
#CB3FE9
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1A2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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