#1A2A7D#1A2A7D

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

Color values

HEX#1A2A7D
RGBrgb(26, 42, 125)
HSLhsl(230, 66%, 30%)
HSVhsv(230, 79%, 49%)
CMYKcmyk(79.2%, 66.4%, 0%, 51%)
CIE-LABlab(21.42, 25.50, -48.77)
CIE-LCHlch(21.42, 55.04, 297.60°)
OKLaboklab(33.26% -0.0033 -0.1411)
OKLCHoklch(33.26% 0.141 268.7)
XYZxyz(4.9544, 3.3557, 19.7847)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2A7D #7D6D1A
analogous
#1A5C7D #1A2A7D #3C1A7D
triadic
#1A2A7D #7D1A2A #2A7D1A
tetradic
#1A2A7D #7D1A5C #7D6D1A #1A7D3C
square
#1A2A7D #7D1A5C #7D6D1A #1A7D3C
split-complementary
#1A2A7D #7D3C1A #5C7D1A
monochromatic
#050919 #0F194A #1A2A7D #253BB0 #3B54D6

Accessibility & contrast

On white

12.57
#1A2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2A7D
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2A7D#FFFFFF#000000##FFFFFF
##1A2A7D1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1a2a7d;
/* rgb */ color: rgb(26, 42, 125);
/* oklch */ color: oklch(33.3% 0.141 268.7);
Tailwind
colors: {
  custom: {
    50: '#6863a3',
    500: '#1a2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #1a2a7d;
$custom-light: #6863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2a7d",
  "rgb": {
    "r": 26,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 230.303,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.14111,
    "h": 268.7
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#1A2A7D
secondary
#B19F42
accent
#CD3FE9
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1A2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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