#1A2A7F#1A2A7F

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

Color values

HEX#1A2A7F
RGBrgb(26, 42, 127)
HSLhsl(230, 66%, 30%)
HSVhsv(230, 80%, 50%)
CMYKcmyk(79.5%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.61, 26.29, -49.72)
CIE-LCHlch(21.61, 56.24, 297.86°)
OKLaboklab(33.46% -0.0033 -0.1439)
OKLCHoklch(33.46% 0.144 268.7)
XYZxyz(5.0834, 3.4073, 20.4643)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2A7F #7F6F1A
analogous
#1A5D7F #1A2A7F #3C1A7F
triadic
#1A2A7F #7F1A2A #2A7F1A
tetradic
#1A2A7F #7F1A5D #7F6F1A #1A7F3C
square
#1A2A7F #7F1A5D #7F6F1A #1A7F3C
split-complementary
#1A2A7F #7F3C1A #5D7F1A
monochromatic
#050819 #10194C #1A2A7F #243BB2 #3C55D7

Accessibility & contrast

On white

12.49
#1A2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1A2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2A7F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2A7F#FFFFFF#000000##FFFFFF
##1A2A7F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1a2a7f;
/* rgb */ color: rgb(26, 42, 127);
/* oklch */ color: oklch(33.5% 0.144 268.7);
Tailwind
colors: {
  custom: {
    50: '#6963a5',
    500: '#1a2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1a2a7f;
$custom-light: #6963a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2a7f",
  "rgb": {
    "r": 26,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 230.495,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.1439,
    "h": 268.7
  },
  "luminance": 0.03408
}

Semantic roles & 50–950 ramp

primary
#1A2A7F
secondary
#B3A142
accent
#CE3FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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